Add 'frontend/' from commit 'babef04f9ab6e81ed6153681e3e771bb614744be'

git-subtree-dir: frontend
git-subtree-mainline: bfc1a360b6
git-subtree-split: babef04f9a
This commit is contained in:
2026-09-03 14:03:29 +02:00
57 changed files with 11319 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM node:20-alpine AS build
WORKDIR /app
# Install dependencies (include devDependencies for the build)
COPY package*.json ./
# Ensure devDependencies are installed during the build
ENV NODE_ENV=development
RUN npm ci --silent
# Copy source and build
COPY . .
RUN npm run build
FROM nginx:stable-alpine AS production
WORKDIR /usr/share/nginx/html
# Copy built files from the build stage
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]