Skip to content

admin/dorfarchiv

PublicMirror

Mirror of https://forge.levinkeller.de/levin/dorfarchiv.git

18 lines · 470 B
1# --- Stage 1: Build the static Docusaurus site ---
2FROM node:22-alpine AS build
3WORKDIR /app
4
5# Abhängigkeiten zuerst (Layer-Cache)
6COPY package.json package-lock.json* ./
7RUN npm ci
8
9# Quellcode kopieren und statisch bauen
10COPY . .
11RUN npm run build
12
13# --- Stage 2: Serve build/ via nginx ---
14FROM nginx:alpine AS runtime
15COPY nginx.conf /etc/nginx/conf.d/default.conf
16COPY --from=build /app/build /usr/share/nginx/html
17EXPOSE 8080
18CMD ["nginx", "-g", "daemon off;"]