Merge pull request #216 from Lukasa/dockerfile

[RFC] Dockerize
This commit is contained in:
2017-03-17 12:46:18 -04:00
committed by GitHub
+11
View File
@@ -0,0 +1,11 @@
FROM ubuntu:trusty
ENV GUNICORN_WORKERS=4
ADD . /httpbin
RUN apt-get update -y && apt-get -y install python-pip && pip install gunicorn && pip install /httpbin
EXPOSE 8080
CMD gunicorn -w "$GUNICORN_WORKERS" -b 0.0.0.0:8080 httpbin:app