erster brauchbarer stand.
This commit is contained in:
+17
@@ -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
|
||||
Reference in New Issue
Block a user