diff options
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. |
