diff --git a/Dockerfile b/Dockerfile index 17f76de..9e675bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,13 +16,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Cache dependencies first COPY go.mod go.sum ./ -RUN go mod edit -dropreplace gitea.maximumdirect.net/ejr/feedkit RUN --mount=type=cache,target=/go/pkg/mod \ go mod download # Copy the rest of the source COPY . . +# Remove local dev replaces that don't exist in container context +RUN go mod edit -dropreplace gitea.maximumdirect.net/ejr/feedkit + # Default to a static build (no CGO) # If errors, can build with: --build-arg CGO_ENABLED=1 ARG CGO_ENABLED=0