Adds a Dockerfile
This commit is contained in:
parent
38746cc0d3
commit
9a394e5025
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
|
Reference in New Issue
Block a user