Preserve upgrade compatibility in deployment

This commit is contained in:
Arun committed 2026-08-14 04:42:05 +00:00
1 parent 28bdea9572
commit b7db82ec0b
5 files changed
+17 -10

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ RUN npm ci --omit=dev && npm cache clean --force
COPY --chown=node:node . .
RUN mkdir -p /app/uploads && chown node:node /app/uploads
RUN chmod +x /app/scripts/docker-entrypoint.sh
USER node
EXPOSE 3000
@@ -15,4 +16,4 @@ EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD ["node", "scripts/healthcheck.js"]
CMD ["sh", "-c", "npm run migrate && npm start"]
ENTRYPOINT ["/app/scripts/docker-entrypoint.sh"]