the-tip-top-backend/Dockerfile

17 lines
249 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Utilise une image Node légère
FROM node:18-alpine
WORKDIR /app
# Copie les fichiers
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
# Définit la variable denvironnement
ENV NODE_ENV=production
EXPOSE 4000
CMD ["npm", "start"]