From 1bc4b0fb5047128612b790d46be8a2657c939ee5 Mon Sep 17 00:00:00 2001 From: Sebastian Slettebakken <43045439+sebastas@users.noreply.github.com> Date: Thu, 13 Nov 2025 04:01:26 +0100 Subject: [PATCH] feat: forgot to define some runtime environment variables in Dockerfile --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 26948ac..a4620f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,11 @@ RUN chmod +x /usr/local/bin/entrypoint.sh # Copy built frontend into the expected location: /app/frontend/dist COPY --from=frontend-build /app/frontend/dist ./frontend/dist +# runtime environment (DATA_DIR used at runtime; DATABASE_URL points to it) +ENV NODE_ENV=production +ENV DATA_DIR=/data +ENV DATABASE_URL="file:${DATA_DIR}/sqlite.db" + WORKDIR /app/backend EXPOSE 3000