Merge pull request #23 from SuperSandro2000/docker

Improve Dockerfile
This commit is contained in:
PLUJA 2020-09-04 18:38:25 +02:00 committed by GitHub
commit 8ec22cab99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
Dockerfile

View File

@ -7,9 +7,9 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
RUN flask db init RUN flask db init \
RUN flask db migrate && flask db migrate\
RUN flask db upgrade && flask db upgrade
CMD flask run --host 0.0.0.0 CMD [ "flask", "run", "--host", "0.0.0.0" ]
EXPOSE 5000 EXPOSE 5000