fix: precreate instance directory

This commit is contained in:
2023-01-05 20:26:26 +01:00
parent 178ca55aa2
commit 43d66ba2ba

View File

@@ -8,6 +8,9 @@ RUN python3 -m pip install --upgrade pip
WORKDIR /app WORKDIR /app
COPY ./ . 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 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 #HEALTHCHECK --interval=5m --timeout=5s CMD /usr/bin/curl http://localhost:5000/ || exit 1