feat(front-end): ssr implementation
Some checks failed
PR Checks / prettier-autofix (pull_request) Successful in 11s
PR Checks / test-frontend (pull_request) Failing after 57s
PR Checks / security-sast (pull_request) Successful in 30s
PR Checks / test-backend (pull_request) Successful in 27s

This commit is contained in:
2026-03-11 16:37:08 +01:00
parent b7dfc53bc0
commit 2ace632022
23 changed files with 933 additions and 533 deletions

View File

@@ -1,14 +1,13 @@
# Stage 1: Build
FROM node:20 as build
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci --legacy-peer-deps
COPY . .
RUN npm run build --configuration=production
RUN npm run build -- --configuration=production
# Stage 2: Serve
FROM nginx:alpine
COPY --from=build /app/dist/frontend/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
ENV NODE_ENV=production
ENV PORT=80
EXPOSE 80
CMD ["node", "dist/frontend/server/server.mjs"]