aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/tools/db-mgmt
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/tools/db-mgmt
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/tools/db-mgmt')
-rw-r--r--syz-cluster/tools/db-mgmt/Dockerfile11
1 files changed, 5 insertions, 6 deletions
diff --git a/syz-cluster/tools/db-mgmt/Dockerfile b/syz-cluster/tools/db-mgmt/Dockerfile
index 31c3b12d3..9ea856821 100644
--- a/syz-cluster/tools/db-mgmt/Dockerfile
+++ b/syz-cluster/tools/db-mgmt/Dockerfile
@@ -1,17 +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 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/
# Build the tool.
-COPY syz-cluster/tools/db-mgmt/*.go syz-cluster/tools/db-mgmt/
-COPY syz-cluster/pkg/ syz-cluster/pkg/
+COPY --exclude=.git . .
RUN go build -o /bin/db-mgmt /build/syz-cluster/tools/db-mgmt
# Create the actual container.