From 810069d1fe2e4270d856c269058fa8b90efc5933 Mon Sep 17 00:00:00 2001 From: ahmza Date: Sat, 22 Aug 2026 01:21:32 +0000 Subject: [PATCH] updated docker file to help with caching --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 250d082..9b35f77 100755 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,17 @@ # on TARGETPLATFORM, so multi-arch (amd64 + arm64) runtime images are preserved. FROM --platform=$BUILDPLATFORM ghcr.io/hugomods/hugo:0.157.0 AS build 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 FROM ghcr.io/static-web-server/static-web-server:2