feat: add frontend Dockerfile, Vite config, and Nginx config

This commit is contained in:
2026-02-28 19:54:51 +01:00
parent ee9dc101da
commit 3436856215
6 changed files with 99 additions and 0 deletions

11
frontend/Dockerfile Normal file
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