From 43d66ba2bab26e0b378d12bcdf8c8f1a5cd0ed8b Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Thu, 5 Jan 2023 20:26:26 +0100 Subject: [PATCH] fix: precreate instance directory --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4e1af8c..a2a5f5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,9 @@ RUN python3 -m pip install --upgrade pip WORKDIR /app COPY ./ . +# precreate database directory for mount (will otherwise be created at before_first_request) +RUN mkdir /app/instance/ + RUN python3 -m pip install --no-cache-dir -r req.txt #HEALTHCHECK --interval=5m --timeout=5s CMD /usr/bin/curl http://localhost:5000/ || exit 1