This commit is contained in:
2026-03-23 23:17:53 +01:00
parent 780f5e86c6
commit 2b108fc438
83 changed files with 46 additions and 10 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# 1. Build
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# 2. Serveur nginx
FROM nginx:alpine
# Supprime la config par défaut
RUN rm /etc/nginx/conf.d/default.conf
# Ajoute ta config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copie le build
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]