blob: 42b64f4daca306556608aa28f08def14a564a620 (
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
26
|
FROM golang:1.24-alpine AS dashboard-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/
COPY pkg/html/urlutil/ pkg/html/urlutil/
# Build the tool.
COPY syz-cluster/dashboard/ syz-cluster/dashboard/
COPY syz-cluster/pkg/ syz-cluster/pkg/
RUN go build -o /bin/web-dashboard /build/syz-cluster/dashboard
# Build the container.
FROM alpine:latest
WORKDIR /app
COPY --from=dashboard-builder /bin/web-dashboard /bin/web-dashboard
EXPOSE 8081
ENTRYPOINT ["/bin/web-dashboard"]
|