From 5c7ee2266a91de6211d92ce88b669c68db2195c4 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 14 Apr 2025 21:19:32 +0200 Subject: [PATCH] test mdwiki --- Dockerfile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 199077b..13306da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,5 @@ -# builder -FROM hugomods/hugo:base-non-root AS builder -ARG BASE_URL "" -ARG RELEASETAG "unset" -# --chown is required since kaniko in woodpecker otherwise copies as root and -# the hugo command below fails since it is executed as hugo -COPY --chown=hugo:hugo content/ /src -RUN sed -i 's/%RELEASETAG%/'${RELEASETAG}'/' /src/layouts/partials/releasetag.html -RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi - -# server FROM nginx:alpine3.21 -COPY --from=builder /src/public /usr/share/nginx/html +COPY ./content /usr/share/nginx/html # ------------ # prepare for rootless operations RUN \