fix: auto-create data directory and initialize DB in nextgen container
Build and Push Docker Images / deploy (push) Blocked by required conditions Details
Build and Push Docker Images / build (musicseerr) (push) Failing after 5m1s Details
Build and Push Docker Images / build (api) (push) Failing after 5m8s Details
Build and Push Docker Images / build (worker) (push) Failing after 1m30s Details
Build and Push Docker Images / build (web) (push) Failing after 1m38s Details
Build and Push Docker Images / build (nextgen) (push) Failing after 11m24s Details

This commit is contained in:
fchinembiri 2026-07-11 19:03:08 +02:00
parent 4cd1f5b908
commit d524b00271
1 changed files with 1 additions and 1 deletions

View File

@ -28,4 +28,4 @@ EXPOSE 3001
ENV PORT=3001
ENV NODE_ENV=production
CMD ["node", "src/index.js"]
CMD ["sh", "-c", "mkdir -p ../data && ([ -f ../data/school.db ] || node src/database/init.js) && node src/index.js"]