diff --git a/Dockerfile b/Dockerfile index b9c1283..5700089 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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