aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/dashboard/Dockerfile
blob: 44211df1eda33b5abcdc5d9a10fd32be86e15be5 (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
# syntax=docker.io/docker/dockerfile:1.7-labs
# Copyright 2025 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
FROM golang:1.24-alpine AS dashboard-builder

WORKDIR /build

# Prepare the dependencies.
COPY go.mod go.sum ./
RUN go mod download

# Build the tool.
COPY --exclude=.git . .
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"]