Omar Oughriss 1e2b53e7a8
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s
Add CI to main
2025-06-30 15:19:13 +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 8080
CMD ["npm", "start"]