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

     1  FROM golang:1.24-alpine AS dashboard-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  COPY pkg/html/urlutil/ pkg/html/urlutil/
    11  
    12  # Build the tool.
    13  COPY syz-cluster/dashboard/ syz-cluster/dashboard/
    14  COPY syz-cluster/pkg/ syz-cluster/pkg/
    15  RUN go build -o /bin/web-dashboard /build/syz-cluster/dashboard
    16  
    17  # Build the container.
    18  FROM alpine:latest
    19  WORKDIR /app
    20  
    21  COPY --from=dashboard-builder /bin/web-dashboard /bin/web-dashboard
    22  
    23  EXPOSE 8081
    24  
    25  ENTRYPOINT ["/bin/web-dashboard"]