Fixed a bug in the Dockerfile with respect to the location of the dropreplace for ejr/feedkit.
Some checks failed
ci/woodpecker/manual/build-image Pipeline failed
Some checks failed
ci/woodpecker/manual/build-image Pipeline failed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user