aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/dashboard
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-12-31 11:45:07 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-12-31 12:47:10 +0000
commit49aa01cc85881401b4863fee7eb2d1a0b24daa93 (patch)
tree84073e368d45bdcabe00e1fa4b71bc5cae540d39 /syz-cluster/dashboard
parentd32f762a1f4d1a1e4bd4b116b42b5cd263892f71 (diff)
syz-cluster: refactor Dockerfiles
Copy everything into the build context. Add a .dockerignore file to avoid copying the definitely unnecessary files and folders. Check copyrights presence in Dockerfiles.
Diffstat (limited to 'syz-cluster/dashboard')
-rw-r--r--syz-cluster/dashboard/Dockerfile12
1 files changed, 5 insertions, 7 deletions
diff --git a/syz-cluster/dashboard/Dockerfile b/syz-cluster/dashboard/Dockerfile
index 42b64f4da..44211df1e 100644
--- a/syz-cluster/dashboard/Dockerfile
+++ b/syz-cluster/dashboard/Dockerfile
@@ -1,18 +1,16 @@
+# 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 ./
-COPY go.sum ./
+COPY go.mod 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/
+COPY --exclude=.git . .
RUN go build -o /bin/web-dashboard /build/syz-cluster/dashboard
# Build the container.