From 5637269bcaeb45e970bcaa1d22a1c1725940e303 Mon Sep 17 00:00:00 2001 From: Justine Pelletreau Date: Thu, 17 Mar 2022 01:21:08 +0100 Subject: [PATCH] Dockerfile not tested --- src/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/Dockerfile diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 0000000..a8195d8 --- /dev/null +++ b/src/Dockerfile @@ -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" ]