19 lines
243 B
Docker
19 lines
243 B
Docker
FROM hugomods/hugo:std-base-non-root AS builder
|
|
|
|
ARG BASE_URL ""
|
|
|
|
COPY content/ /src
|
|
|
|
RUN if [ "$BASE_URL" = ""]; then hugo; else hugo -b $BASE_URL; fi
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /src/public /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
|