Added a go mod tidy step to the Dockerfile build.
All checks were successful
ci/woodpecker/manual/build-image Pipeline was successful
All checks were successful
ci/woodpecker/manual/build-image Pipeline was successful
This commit is contained in:
@@ -26,6 +26,11 @@ COPY . .
|
|||||||
# Remove local dev replaces that don't exist in container context
|
# Remove local dev replaces that don't exist in container context
|
||||||
RUN go mod edit -dropreplace gitea.maximumdirect.net/ejr/feedkit
|
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)
|
# Default to a static build (no CGO)
|
||||||
# If errors, can build with: --build-arg CGO_ENABLED=1
|
# If errors, can build with: --build-arg CGO_ENABLED=1
|
||||||
ARG CGO_ENABLED=0
|
ARG CGO_ENABLED=0
|
||||||
|
|||||||
Reference in New Issue
Block a user