2018-06-12 00:39:57 +02:00
|
|
|
FROM python:2-alpine
|
2018-06-12 00:15:11 +02:00
|
|
|
|
|
|
|
RUN apk add --no-cache --virtual .build-deps \
|
|
|
|
build-base \
|
2018-06-12 00:39:57 +02:00
|
|
|
git \
|
|
|
|
&& git clone --depth 1 https://github.com/Runscope/requestbin /src \
|
|
|
|
&& pip install -r /src/requirements.txt \
|
|
|
|
&& pip install --no-cache-dir \
|
2018-06-12 00:15:11 +02:00
|
|
|
gevent \
|
|
|
|
gunicorn \
|
2018-06-12 00:39:57 +02:00
|
|
|
&& rm -rf ~/.pip/cache \
|
2018-06-12 00:15:11 +02:00
|
|
|
&& apk del .build-deps
|
|
|
|
|
2018-06-12 00:39:57 +02:00
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8080", "requestbin:app", "-k", "gevent"]
|