lecoffre-back-mini/Dockerfile
Omar Oughriss 05a42f6414
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 28s
test
2025-06-30 14:59:28 +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"]