blob: 82f34946c065726edaba8585bcd992df0729ee41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
FROM golang:1.24-alpine AS reporter-builder
WORKDIR /build
# Prepare the dependencies.
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY pkg/gcs/ pkg/gcs/
COPY pkg/osutil/ pkg/osutil/
# Build the tool.
COPY syz-cluster/reporter-server/ syz-cluster/reporter-server/
COPY syz-cluster/pkg/ syz-cluster/pkg/
RUN go build -o /bin/reporter-server /build/syz-cluster/reporter-server
# Build the container.
FROM alpine:latest
WORKDIR /app
COPY --from=reporter-builder /bin/reporter-server /bin/reporter-server
EXPOSE 8080
ENTRYPOINT ["/bin/reporter-server"]
|