Update for production.

This commit is contained in:
2025-09-21 15:33:19 +02:00
parent b5e0a71e2b
commit a13e88b19e
17 changed files with 883 additions and 13 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# Étape 1 : Build
FROM node:24-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:24-alpine AS runner
WORKDIR /app
RUN npm install -g serve
COPY --from=builder /app/dist ./dist
EXPOSE 5000
CMD ["serve", "-s", "build", "-l", "5000"]