mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update Dockerfile to fix entrypoint error and improve startup
Remove the custom entrypoint script from the Dockerfile, disabling its execution on container startup and allowing the application to start directly. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/biGr9ER
This commit is contained in:
1 parent
d45d3562ba
commit
34e303c6e4
2 files changed
+40
-6
No files matched your search
+3
-6
@@ -106,11 +106,8 @@ USER nextjs
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1
|
||||
|
||||
# Copy and set entrypoint script
|
||||
COPY --chown=nextjs:nodejs scripts/docker-entrypoint.sh ./
|
||||
RUN chmod +x /app/scripts/auto-migrate-production.sh && \
|
||||
chmod +x /app/docker-entrypoint.sh
|
||||
# Make migration script executable
|
||||
RUN chmod +x /app/scripts/auto-migrate-production.sh
|
||||
|
||||
# Start the application with migration
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
# Start the application normally (migration will be manual or via init script)
|
||||
CMD ["node", "dist/index.js"]
|
||||
Reference in new issue
Block a user