Add Dockerfile
This commit is contained in:
parent
ca57a23f9d
commit
79c3913e28
2 changed files with 20 additions and 10 deletions
11
examples/tutorial/Dockerfile
Normal file
11
examples/tutorial/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue