Reduce the number of docker layers

This commit is contained in:
Steffen Schröder
2018-05-19 20:59:06 +02:00
parent 28247f47e6
commit d449969d1b
+3 -4
View File
@@ -1,12 +1,11 @@
FROM ubuntu:18.04
RUN apt update -y
RUN apt install python3-pip -y
RUN apt update -y && apt install python3-pip -y
EXPOSE 80
ADD . /httpbin
RUN pip3 install --no-cache-dir gunicorn /httpbin
EXPOSE 80
CMD ["gunicorn", "-b", "0.0.0.0:80", "httpbin:app", "-k", "gevent"]