Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
# --------------------------------------------
Expand All @@ -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
Expand Down