diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-12-31 11:45:07 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-12-31 12:47:10 +0000 |
| commit | 49aa01cc85881401b4863fee7eb2d1a0b24daa93 (patch) | |
| tree | 84073e368d45bdcabe00e1fa4b71bc5cae540d39 /syz-cluster/tools | |
| parent | d32f762a1f4d1a1e4bd4b116b42b5cd263892f71 (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')
| -rw-r--r-- | syz-cluster/tools/db-mgmt/Dockerfile | 11 | ||||
| -rw-r--r-- | syz-cluster/tools/send-test-email/Dockerfile | 15 |
2 files changed, 10 insertions, 16 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. diff --git a/syz-cluster/tools/send-test-email/Dockerfile b/syz-cluster/tools/send-test-email/Dockerfile index 69706aff0..0a66349c2 100644 --- a/syz-cluster/tools/send-test-email/Dockerfile +++ b/syz-cluster/tools/send-test-email/Dockerfile @@ -1,21 +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 dashboard/dashapi/ dashboard/dashapi/ -COPY pkg/gcs/ pkg/gcs/ -COPY pkg/email/ pkg/email/ -COPY pkg/auth/ pkg/auth/ -COPY pkg/gcpsecret/ pkg/gcpsecret/ # Build the tool. -COPY syz-cluster/tools/send-test-email/*.go syz-cluster/tools/send-test-email/ -COPY dashboard/dashapi/ dashboard/dashapi/ -COPY syz-cluster/pkg/ syz-cluster/pkg/ +COPY --exclude=.git . . RUN go build -o /bin/send-email /build/syz-cluster/tools/send-test-email # Create the actual container. |
