Add Dockerfile

This commit is contained in:
ted-cdw 2023-02-21 20:30:43 -05:00
parent ca57a23f9d
commit 79c3913e28
2 changed files with 20 additions and 10 deletions

View file

@ -0,0 +1,11 @@
FROM python:3.11.2-alpine3.17
COPY . "/tutorial"
WORKDIR /tutorial
RUN pip install .
RUN flask --app=flaskr init-db
EXPOSE 5000
CMD [ "flask", "--app=flaskr", "run", "--host=0.0.0.0"]