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:
@ -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}
|
||||
|
Reference in New Issue
Block a user