simple-login/Dockerfile
Nicolas CARPi 55f54497f2 Improve the Dockerfile
* reduce number of layers
* remove vim installation
* add LICENSE and README to .dockerignore
* don't cache with pip
* add EXPOSE directive

This set of changes reduces the image size by almost 100 Mb.
2020-01-23 16:04:06 +01:00

15 lines
305 B
Docker

FROM python:3.7
WORKDIR /code
# copy everything into /code
COPY . .
# install dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
EXPOSE 7777
#gunicorn wsgi:app -b 0.0.0.0:7777 -w 2 --timeout 15 --log-level DEBUG
CMD ["gunicorn","wsgi:app","-b","0.0.0.0:7777","-w","2","--timeout","15"]