github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/tools/send-test-email/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 dashboard/dashapi/ dashboard/dashapi/
    10  COPY pkg/gcs/ pkg/gcs/
    11  COPY pkg/email/ pkg/email/
    12  COPY pkg/auth/ pkg/auth/
    13  COPY pkg/gcpsecret/ pkg/gcpsecret/
    14  
    15  # Build the tool.
    16  COPY syz-cluster/tools/send-test-email/*.go syz-cluster/tools/send-test-email/
    17  COPY dashboard/dashapi/ dashboard/dashapi/
    18  COPY syz-cluster/pkg/ syz-cluster/pkg/
    19  RUN go build -o /bin/send-email /build/syz-cluster/tools/send-test-email
    20  
    21  # Create the actual container.
    22  FROM alpine:latest
    23  WORKDIR /app
    24  
    25  COPY --from=builder /bin/send-email /bin/send-email
    26  
    27  ENTRYPOINT ["/bin/send-email"]