Move Dockerfile to prevent unnecessary cache dirtying
This commit is contained in:
parent
646cf24a70
commit
a8f7fee179
2 changed files with 1 additions and 0 deletions
11
examples/Dockerfile
Normal file
11
examples/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