diff --git a/Dockerfile b/Dockerfile index 467873f5..d5596ab2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q python-all python-pip ADD ./webapp/requirements.txt /tmp/requirements.txt RUN pip install -qr /tmp/requirements.txt +RUN pip install gunicorn ADD ./webapp /opt/webapp/ WORKDIR /opt/webapp EXPOSE 5000 CMD ["python", "app.py"] +#CMD ["gunicorn", "run:app"] to run it in the production env , uncomment this line and comment the above line(line 11).