Adds a Dockerfile

This commit is contained in:
Sn0wed1 2020-09-03 15:27:08 -05:00 committed by GitHub
parent 38746cc0d3
commit 9a394e5025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN flask db init
RUN flask db migrate
RUN flask db upgrade
CMD flask run --host 0.0.0.0
EXPOSE 5000