mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-19 21:28:39 +02:00
Fix Docker entrypoint issues and improve containerization approach
Refactors the Dockerfile to use an inline script and addresses file permission issues for a more robust container build. 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/jJHXzkQ
This commit is contained in:
1 parent
dbcef0133a
commit
2dd29e1602
5 files changed
+136
-142
No files matched your search
+6
-5
@@ -61,12 +61,13 @@ COPY --from=builder --chown=regisflow:nodejs /build/dist/public ./public
|
||||
RUN npm cache clean --force && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
# 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 AVANT de copier le script
|
||||
USER regisflow
|
||||
|
||||
# Changer vers l'utilisateur non-root
|
||||
# Copier le script d'entrée directement dans /app après changement d'utilisateur
|
||||
COPY --chown=regisflow:nodejs docker-entrypoint.sh /app/docker-entrypoint.sh
|
||||
USER root
|
||||
RUN chmod +x /app/docker-entrypoint.sh
|
||||
USER regisflow
|
||||
|
||||
# Exposer le port
|
||||
|
||||
Reference in new issue
Block a user