Dockerfile not tested
This commit is contained in:
parent
1facfbaed6
commit
5637269bca
10
src/Dockerfile
Normal file
10
src/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM python:3-slim-bullseye
|
||||
WORKDIR /app
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir --upgrade pip
|
||||
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
||||
VOLUME ["/app/notes.pickle"]
|
||||
COPY . /app
|
||||
EXPOSE 8080
|
||||
ENV FLASK_APP=squipnotes
|
||||
CMD [ "python", "-m" , "flask", "run", "--host=0.0.0.0", "--port=8080" ]
|
Loading…
x
Reference in New Issue
Block a user