fix: Merge branch 'main' of git.janis-eccarius.de:NowChess/NowChess-Frontend into feat/NCS-69

This commit is contained in:
shahdlala66
2026-05-12 22:18:09 +02:00
parent 7de4f3784b
commit 8eb27ba8b9
16 changed files with 537 additions and 35 deletions
+12 -6
View File
@@ -1,19 +1,25 @@
FROM node:20-alpine AS build
FROM --platform=$BUILDPLATFORM node:lts-alpine3.23 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --silent
RUN npm install
COPY . .
RUN npm run build
RUN npm run build -- --configuration production
FROM --platform=$TARGETPLATFORM nginx:stable-alpine AS production
FROM nginx:stable-alpine
RUN apk add --no-cache gettext
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/dist/nowchess-frontend/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/nowchess-frontend/browser /usr/share/nginx/html
COPY public/env.template.js /usr/share/nginx/html/env.template.js
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
ENTRYPOINT ["/docker-entrypoint.sh"]