github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/workflow/build-step/Dockerfile (about) 1 # syntax=docker.io/docker/dockerfile:1.7-labs 2 # Copyright 2024 syzkaller project authors. All rights reserved. 3 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 4 5 FROM gcr.io/syzkaller/env AS build-step-builder 6 7 WORKDIR /build 8 COPY go.mod go.sum ./ 9 RUN go mod download 10 COPY --exclude=syz-cluster . . 11 COPY syz-cluster/workflow/build-step/*.go syz-cluster/workflow/build-step/ 12 COPY syz-cluster/pkg/ syz-cluster/pkg/ 13 RUN go build -o /build/build-step-bin /build/syz-cluster/workflow/build-step 14 15 # Build on the latest syzbot image. 16 FROM gcr.io/syzkaller/syzbot:latest 17 18 # Download the base buildroot image. 19 RUN mkdir -p /disk-images 20 ADD https://storage.googleapis.com/syzkaller/images/buildroot_amd64_2024.09.gz /disk-images/buildroot_amd64_2024.09.gz 21 RUN gzip -d /disk-images/buildroot_amd64_2024.09.gz 22 RUN chmod 644 /disk-images/* 23 24 # Download base kernel configs. 25 RUN mkdir -p /kernel-configs 26 ADD https://raw.githubusercontent.com/google/syzkaller/refs/heads/master/dashboard/config/linux/upstream-apparmor-kasan.config /kernel-configs/upstream-apparmor-kasan.config 27 ADD https://raw.githubusercontent.com/google/syzkaller/refs/heads/master/dashboard/config/linux/upstream-kmsan.config /kernel-configs/upstream-kmsan.config 28 RUN chmod 644 /kernel-configs/* 29 30 # Prevent "fatal: detected dubious ownership in repository" errors. 31 RUN git config --system --add safe.directory /workdir 32 RUN git config --system --add safe.directory /kernel-repo 33 34 COPY --from=build-step-builder /build/build-step-bin /bin/build-step 35 36 ENTRYPOINT ["/bin/series-tracker"]