mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
bb787ed861
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
17 lines
407 B
Docker
17 lines
407 B
Docker
FROM python:2-alpine
|
|
|
|
RUN apk add --no-cache --virtual .build-deps \
|
|
build-base \
|
|
git \
|
|
&& git clone --depth 1 https://github.com/Runscope/requestbin /src \
|
|
&& pip install -r /src/requirements.txt \
|
|
&& pip install --no-cache-dir \
|
|
gevent \
|
|
gunicorn \
|
|
&& rm -rf ~/.pip/cache \
|
|
&& apk del .build-deps
|
|
|
|
WORKDIR /src
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "requestbin:app", "-k", "gevent"]
|