lecoffre-back-mini/Dockerfile
omaroughriss b191e5f7b2
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 27s
Update port
2025-07-03 11:37:45 +02:00

19 lines
350 B
Docker

FROM node:19-alpine
WORKDIR /app
# Installation des dépendances
COPY package*.json ./
RUN npm install --production
# Copie des fichiers source
COPY src ./src
# Création d'un utilisateur non-root
RUN adduser -D appuser --uid 10000 && \
chown -R appuser /app
USER appuser
# Configuration du port et démarrag
EXPOSE 3001
CMD ["npm", "start"]