github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/series-tracker/Dockerfile.test (about) 1 # I. Checkout the git repository. 2 FROM ubuntu:latest AS git-source 3 4 RUN apt-get update && \ 5 apt-get install -y git 6 7 WORKDIR /git-repo 8 9 RUN git init 10 RUN git remote add docs-0 http://lore.kernel.org/linux-doc/0 11 RUN git fetch docs-0 12 RUN git checkout docs-0/master 13 14 # II. Build the tool. 15 FROM golang:1.24-alpine AS series-tracker-builder 16 17 WORKDIR /build 18 19 # Prepare the dependencies. 20 COPY go.mod go.sum ./ 21 RUN go mod download 22 23 # Build the tool. 24 COPY pkg/ pkg/ 25 # TODO: get rid of this dependency. 26 COPY prog/ prog/ 27 COPY dashboard/dashapi/ dashboard/dashapi/ 28 COPY sys/targets/ sys/targets/ 29 COPY syz-cluster/series-tracker/*.go syz-cluster/series-tracker/ 30 COPY syz-cluster/pkg/ syz-cluster/pkg/ 31 32 RUN go build -o /build/series-tracker-bin /build/syz-cluster/series-tracker 33 34 # III. Create the actual container. 35 FROM git-source 36 37 COPY --from=series-tracker-builder /build/series-tracker-bin /bin/series-tracker 38 39 ENTRYPOINT ["/bin/series-tracker"]