Resolve Docker issues preventing the application from starting correctly

Fixes "docker-entrypoint.sh not found" and improves Dockerfile for proper entrypoint execution and adds docker-test-quick.sh.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/DWp0Qa4
This commit is contained in:
michaelschal committed 2025-07-19 14:10:39 +00:00
1 parent 55e4952e74
commit dbcef0133a
4 files changed
+166 -9

No files matched your search

+6 -8
View File
@@ -61,9 +61,10 @@ COPY --from=builder --chown=regisflow:nodejs /build/dist/public ./public
RUN npm cache clean --force && \
rm -rf /tmp/*
# Copier les scripts de configuration
COPY --chown=regisflow:nodejs docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Copier le script d'entrée directement dans /app (accessible)
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
RUN chmod +x /app/docker-entrypoint.sh && \
chown regisflow:nodejs /app/docker-entrypoint.sh
# Changer vers l'utilisateur non-root
USER regisflow
@@ -86,8 +87,5 @@ LABEL description="Application RegisFlow pour la gestion des ventes de feux d'ar
HEALTHCHECK --interval=30s --timeout=15s --start-period=90s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1
# Utiliser dumb-init pour gérer les signaux
ENTRYPOINT ["dumb-init", "--"]
# Démarrer avec le script d'entrée
CMD ["docker-entrypoint.sh"]
# Utiliser dumb-init pour gérer les signaux et lancer le script depuis /app
ENTRYPOINT ["dumb-init", "--", "/app/docker-entrypoint.sh"]