FROM golang:1.26-alpine AS builder RUN apk add --no-cache git ENV CGO_ENABLED=0 ENV GOCACHE=/go/cache ENV GOMODCACHE=/go/mod WORKDIR /src COPY go.mod go.sum ./ RUN --mount=type=cache,target=/go/cache \ --mount=type=cache,target=/go/mod \ go mod download COPY . . RUN --mount=type=cache,target=/go/cache \ --mount=type=cache,target=/go/mod \ go build -o /out/seed ./localinfra/cmd/seed FROM alpine:3.22 RUN apk add --no-cache curl jq COPY --from=builder /out/seed /usr/local/bin/seed