update Dockerfile

- base it on the custom git.brds.ca/d-b.ca/hugo-builder (as the gohugo container doesn't really work for this).
This commit is contained in:
2025-05-10 09:56:27 -06:00
parent 0218c47f2b
commit c67fe08a33

View File

@ -1,12 +1,12 @@
# Package versions
ARG HUGO_VERSION="v0.147.1"
ARG HUGO_VERSION="latest"
ARG CADDY_VERSION="2.10.0"
# Stage 1: Build
FROM ghcr.io/gohugoio/hugo:${HUGO_VERSION} AS builder
FROM git.brds.ca/d-b.ca/hugo-builder:${HUGO_VERSION} AS builder
WORKDIR /project
COPY . .
RUN hugo build
RUN hugo --minify build
# Stage 2: Package
FROM docker.io/caddy:${CADDY_VERSION}