initial commit

This commit is contained in:
2025-11-25 21:03:20 +01:00
parent 73ba7c29c6
commit 1c0e22aac1
4246 changed files with 1170297 additions and 0 deletions

33
frontend/Dockerfile Normal file
View File

@ -0,0 +1,33 @@
# ===========================
# Build stage
# ===========================
FROM node:20-bullseye AS builder
# Définir le répertoire de travail
WORKDIR /app
# Copier package.json et package-lock.json pour utiliser le cache Docker
COPY package*.json ./
# Installer les dépendances
RUN npm install
# Copier tout le code source
COPY . .
# Lancer le build Vite + Tailwind
RUN npm run build
# ===========================
# Production stage
# ===========================
FROM nginx:alpine
# Copier les fichiers build depuis le stage précédent
COPY --from=builder /app/dist /usr/share/nginx/html
# Exposer le port 80
EXPOSE 80
# Lancer Nginx
CMD ["nginx", "-g", "daemon off;"]