mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #458 from steffenschroeder/master
Dockerfile improvements
This commit is contained in:
+5
-5
@@ -1,11 +1,11 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
ADD . /httpbin
|
||||
|
||||
RUN apt update -y
|
||||
RUN apt install python3-pip -y
|
||||
RUN pip3 install --no-cache-dir gunicorn /httpbin
|
||||
RUN apt update -y && apt install python3-pip -y
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
ADD . /httpbin
|
||||
|
||||
RUN pip3 install --no-cache-dir gunicorn /httpbin
|
||||
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:80", "httpbin:app", "-k", "gevent"]
|
||||
|
||||
Reference in New Issue
Block a user