From e86d4a02e03b06a2a71245d1ecbb85b5b4b41b76 Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Sun, 1 Feb 2026 10:15:50 -0600 Subject: [PATCH] Added a go mod tidy step to the Dockerfile build. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8dbb746..671f05d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,11 @@ COPY . . # Remove local dev replaces that don't exist in container context RUN go mod edit -dropreplace gitea.maximumdirect.net/ejr/feedkit +# Ensure go.sum is complete after dropping the replace +RUN --mount=type=cache,target=/go/pkg/mod \ + --mount=type=cache,target=/root/.cache/go-build \ + go mod tidy + # Default to a static build (no CGO) # If errors, can build with: --build-arg CGO_ENABLED=1 ARG CGO_ENABLED=0