FROM docker.io/golang:1.23-alpine AS builder ENV GOEXPORT=https://proxy.golang.org COPY . /build RUN cd /build && \ go get ./... && \ go build -ldflags '-s -w' -o abfmigrator && \ go test ./... FROM scratch COPY --from=builder /build/abfmigrator . ENTRYPOINT ["./abfmigrator"]