articles
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
# builder
|
||||
FROM hugomods/hugo:base-non-root AS builder
|
||||
ARG BASE_URL ""
|
||||
# --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 id
|
||||
RUN ls -la /src
|
||||
RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi
|
||||
|
||||
# server
|
||||
|
Reference in New Issue
Block a user