dockerfiles/httpbin/Dockerfile

23 lines
379 B
Docker
Raw Normal View History

2018-10-17 16:46:39 +02:00
# Run HTTPBin in a container
#
# USAGE
#
# docker run -d \
# -p 8080:8080 \
# --name httpbin \
# jess/httpbin
#
FROM python:3-alpine
RUN apk add --no-cache --virtual .build-deps \
build-base \
libffi-dev \
&& pip3 install --no-cache-dir \
gevent \
gunicorn \
httpbin \
&& apk del .build-deps
CMD ["gunicorn", "-b", "0.0.0.0:8080", "httpbin:app", "-k", "gevent"]