Security added on delete service and list all node + cleaning some code

This commit is contained in:
Blomios
2026-01-07 22:16:34 +01:00
parent 3c8bebb2ad
commit a64b10175e
192 changed files with 45470 additions and 4308 deletions

View File

@ -1,32 +1,21 @@
# --- Étape 1 : Build du frontend ---
FROM node:22-alpine AS builder
# Création du dossier
WORKDIR /app
# Installation des dépendances
COPY package.json package-lock.json ./
RUN npm install --legacy-peer-deps
# Copie du code source
COPY . .
# Build du projet
RUN npm run build
# --- Étape 2 : Serveur web (Nginx) ---
FROM nginx:alpine
# Suppression de la config par défaut
RUN rm -rf /usr/share/nginx/html/*
# Copie du build
COPY --from=builder /app/dist /usr/share/nginx/html
# Copie (optionnelle) d'une config Nginx personnalisée
# COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]