github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/email-reporter/Dockerfile (about)

     1  FROM golang:1.24-alpine AS email-reporter-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/ pkg/
    10  COPY prog/ prog/
    11  COPY sys/targets/ sys/targets/
    12  COPY dashboard/dashapi/ dashboard/dashapi/
    13  
    14  # Build the tool.
    15  COPY syz-cluster/email-reporter/ syz-cluster/email-reporter/
    16  COPY syz-cluster/pkg/ syz-cluster/pkg/
    17  RUN go build -o /bin/email-reporter /build/syz-cluster/email-reporter
    18  
    19  # Build the container.
    20  FROM alpine:latest
    21  
    22  RUN apk update && \
    23      apk add git
    24  
    25  WORKDIR /app
    26  
    27  COPY --from=email-reporter-builder /bin/email-reporter /bin/email-reporter
    28  
    29  ENTRYPOINT ["/bin/email-reporter"]