From 9668492c4f4d7deb575b864572ed83fb8fe831e0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 01:36:43 +0000 Subject: [PATCH 1/2] Initial plan From 5312a042601b9a35ddabd7ec8d44697e8c5aa719 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 18 Feb 2026 01:39:56 +0000 Subject: [PATCH 2/2] Fix config files location by using entrypoint_fixdb.sh in Dockerfile Co-authored-by: thehack904 <35552907+thehack904@users.noreply.github.com> --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d91bdf4..6535424 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,12 @@ RUN pip install --upgrade pip && pip install -r requirements.txt # -------------------------------------------- COPY . . +# -------------------------------------------- +# Copy entrypoint script and make it executable +# -------------------------------------------- +COPY docker/entrypoint_fixdb.sh /entrypoint_fixdb.sh +RUN chmod +x /entrypoint_fixdb.sh + # -------------------------------------------- # Create persistent directories for TrueNAS mounts # -------------------------------------------- @@ -46,9 +52,10 @@ RUN mkdir -p /app/config /app/logs /app/data EXPOSE 5000 # -------------------------------------------- -# Use tini as init for graceful shutdown handling +# Use tini as init for graceful shutdown handling, +# with entrypoint_fixdb.sh to set up database symlinks # -------------------------------------------- -ENTRYPOINT ["/usr/bin/tini", "--"] +ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint_fixdb.sh"] # -------------------------------------------- # Start the Flask app