From d4b779eeb4dfdd2ff5fb95965deba4de4e9135cc Mon Sep 17 00:00:00 2001 From: miyuko Date: Thu, 23 Oct 2025 15:08:09 +0100 Subject: [PATCH] Copy root .go files to the builder image in the Dockerfile. This fixes the image build error where, after having changed the build command to use the root of the repo instead of ./src, the Go toolchain is unable to find any .go files to build. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 3f56c83..b04e3b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ RUN apk --no-cache add git WORKDIR /build COPY go.mod go.sum ./ RUN go mod download +COPY *.go ./ COPY src/ ./src/ RUN go build -ldflags "-s -w" -o git-pages .