mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-20 13:48:21 +02:00
Improve the application's containerization and startup process
Refactors Dockerfile and entrypoint script for enhanced reliability and Node.js 18 compatibility, including database migration. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/5d315300-98fa-429a-abb0-4fdce6a2e3c9.jpg
This commit is contained in:
1 parent
afb7a90e0a
commit
766b451768
5 files changed
+62
-55
No files matched your search
+7
-4
@@ -44,7 +44,6 @@ RUN mkdir -p /app/backups /app/logs /app/data && \
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/package*.json ./
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/dist ./dist
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/shared ./shared
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/server/prod-start.js ./server/
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/drizzle.config.ts ./
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/node_modules ./node_modules
|
||||
COPY --from=builder --chown=regisflow:nodejs /build/init.sql ./
|
||||
@@ -77,9 +76,13 @@ LABEL maintainer="RegisFlow Team"
|
||||
LABEL version="1.0.0"
|
||||
LABEL description="Application RegisFlow pour la gestion des ventes de feux d'artifice"
|
||||
|
||||
# Health check amélioré
|
||||
HEALTHCHECK --interval=30s --timeout=15s --start-period=90s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:5000/ || exit 1
|
||||
|
||||
# Point d'entrée avec script de démarrage
|
||||
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||
CMD ["node", "dist/index.js"]
|
||||
|
||||
# Utiliser dumb-init pour gérer les signaux
|
||||
ENTRYPOINT ["dumb-init", "--"]
|
||||
|
||||
Reference in new issue
Block a user