fix: nginx setup

This commit is contained in:
teier committed 2026-10-28 15:58:01 +01:00
1 parent 400e0408f3
commit 40b6afd85c
5 files changed
+31 -11

No files matched your search

+9 -2
View File
@@ -1,10 +1,17 @@
# Pfad, unter dem die App ausgeliefert wird, z.B. /ue1
ARG BASE_PATH=/
FROM node:26-trixie-slim AS build
ARG BASE_PATH
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
RUN BASE_PATH="$BASE_PATH" npm run build
FROM nginx:mainline-trixie
ARG BASE_PATH
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
# Willkommensseite des Images entfernen
RUN rm -rf /usr/share/nginx/html/*
COPY --from=build /app/dist /usr/share/nginx/html/${BASE_PATH}