github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/tools/db-mgmt/Dockerfile (about) 1 FROM golang:1.24-alpine AS builder 2 3 WORKDIR /build 4 5 # Prepare the dependencies. 6 COPY go.mod ./ 7 COPY go.sum ./ 8 RUN go mod download 9 COPY pkg/gcs/ pkg/gcs/ 10 11 # Build the tool. 12 COPY syz-cluster/tools/db-mgmt/*.go syz-cluster/tools/db-mgmt/ 13 COPY syz-cluster/pkg/ syz-cluster/pkg/ 14 RUN go build -o /bin/db-mgmt /build/syz-cluster/tools/db-mgmt 15 16 # Create the actual container. 17 FROM alpine:latest 18 WORKDIR /app 19 20 COPY --from=builder /bin/db-mgmt /bin/db-mgmt 21 22 ENTRYPOINT ["/bin/db-mgmt"]