updated docker file to help with caching

This commit is contained in:
2026-08-22 01:21:32 +00:00
parent 9e69de9fd8
commit 810069d1fe
+11 -1
View File
@@ -5,7 +5,17 @@
# on TARGETPLATFORM, so multi-arch (amd64 + arm64) runtime images are preserved. # on TARGETPLATFORM, so multi-arch (amd64 + arm64) runtime images are preserved.
FROM --platform=$BUILDPLATFORM ghcr.io/hugomods/hugo:0.157.0 AS build FROM --platform=$BUILDPLATFORM ghcr.io/hugomods/hugo:0.157.0 AS build
WORKDIR /tmp/hugo WORKDIR /tmp/hugo
COPY . .
COPY go.mod ./
RUN hugo mod get
COPY archetypes ./archetypes
COPY assets ./assets
COPY content ./content
COPY static ./static
COPY themes ./themes
COPY hugo.* ./
RUN hugo --gc --minify RUN hugo --gc --minify
FROM ghcr.io/static-web-server/static-web-server:2 FROM ghcr.io/static-web-server/static-web-server:2