base url overwrite option

This commit is contained in:
Wolfgang Hottgenroth 2025-01-12 00:07:27 +01:00
parent ded0237b9d
commit c4e02c457c

View File

@ -1,8 +1,10 @@
FROM hugomods/hugo:std-base-non-root AS builder
ARG BASE_URL ""
COPY content/ /src
RUN hugo
RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi
FROM nginx:alpine