Merge pull request #45 from deltablot/docker

Improve the Dockerfile
This commit is contained in:
Son Nguyen Kim 2020-01-23 20:03:46 +01:00 committed by GitHub
commit 8845c8de6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -5,4 +5,6 @@ db.sqlite
.pytest_cache
.vscode
.DS_Store
config
config
LICENSE
README.md

View file

@ -1,17 +1,15 @@
FROM python:3.7
RUN apt-get update
RUN apt-get install -y vim
WORKDIR /code
# install dependencies
COPY ./requirements.txt ./
RUN pip3 install -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
# copy everything else into /code
COPY . .
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"]