fix requestbin

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-06-11 18:39:57 -04:00
parent ee39e3f354
commit bb787ed861
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

View File

@ -1,11 +1,16 @@
FROM python:3-alpine FROM python:2-alpine
RUN apk add --no-cache --virtual .build-deps \ RUN apk add --no-cache --virtual .build-deps \
build-base \ build-base \
&& pip3 install --no-cache-dir \ git \
&& git clone --depth 1 https://github.com/Runscope/requestbin /src \
&& pip install -r /src/requirements.txt \
&& pip install --no-cache-dir \
gevent \ gevent \
gunicorn \ gunicorn \
requestbin \ && rm -rf ~/.pip/cache \
&& apk del .build-deps && apk del .build-deps
CMD ["gunicorn", "-b", "0.0.0.0:8080", "requestbin:app", "--worker-class", "gevent"] WORKDIR /src
CMD ["gunicorn", "-b", "0.0.0.0:8080", "requestbin:app", "-k", "gevent"]