feat(docker): ajouter Dockerfile et docker-compose pour la configuration de l'environnement
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
FROM node:20-alpine AS build
|
||||
|
||||
# Dépendances système utiles (optionnel)
|
||||
RUN apk add --no-cache git
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copie package.json et package-lock.json si présent
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
|
||||
# Installation des dépendances
|
||||
RUN npm install
|
||||
|
||||
# Copie du reste du code
|
||||
COPY . .
|
||||
|
||||
# Expose le port utilisé par hugo server
|
||||
EXPOSE 1313
|
||||
|
||||
# Commande de démarrage
|
||||
CMD ["npm", "run", "start"]
|
||||
Reference in New Issue
Block a user