move dockerfile

This commit is contained in:
Mamadou Khoussa [028918 DSI/DAC/DIF/DS] 2025-12-01 01:00:37 +00:00
parent dfb19e3448
commit b8a801edd8

View File

@ -54,7 +54,7 @@ COPY --from=builder /app/dist ./dist
# Vérifier que main.js existe
RUN ls -la dist/ && \
if [ ! -f dist/main.js ]; then echo "ERROR: dist/main.js not found!"; exit 1; fi
if [ ! -f dist/main.js ]; then echo "ERROR: src/dist/main.js not found!"; exit 1; fi
# Créer un utilisateur non-root
RUN addgroup -g 1001 -S nodejs && \