erster brauchbarer stand.

This commit is contained in:
maik
2026-08-18 15:32:41 +02:00
commit 553247cdfb
460 changed files with 13751 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1
# ---- Stage 1: Hugo-Build (Assets sind lokal gevendort, kein Netz nötig) ----
FROM hugomods/hugo:exts AS build
WORKDIR /src
COPY . .
# baseURL wirkt nur auf canonical/sitemap; für Produktion echte Domain setzen.
ARG HUGO_BASEURL=https://map.offener-prozess.de/
RUN hugo --gc --minify --baseURL "${HUGO_BASEURL}"
# ---- Stage 2: statisches Ausliefern mit nginx ----
FROM nginx:1.27-alpine
COPY --from=build /src/public /usr/share/nginx/html
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \
CMD wget -qO- http://127.0.0.1/ >/dev/null 2>&1 || exit 1