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 \
|
2020-05-11 20:32:59 +02:00
|
|
|
libffi-dev \
|
|
|
|
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ \
|
2018-06-12 00:39:57 +02:00
|
|
|
&& git clone --depth 1 https://github.com/Runscope/requestbin /src \
|
2020-05-11 20:32:59 +02:00
|
|
|
&& sed -i 's/gevent/gevent==1.4.0/' /src/requirements.txt \
|
|
|
|
&& echo "Flask==1.1.1" >> /src/requirements.txt \
|
|
|
|
&& echo "Werkzeug==0.15.6" >> /src/requirements.txt \
|
2018-06-12 00:39:57 +02:00
|
|
|
&& pip install -r /src/requirements.txt \
|
|
|
|
&& 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"]
|