feat: dockerfile frontend nginx + cache statique

This commit is contained in:
2026-05-24 05:23:16 +02:00
parent 25a31f1f24
commit 0903115687
2 changed files with 29 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80