github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/syz-cluster/workflow/triage-step/Dockerfile (about)

     1  # Copyright 2024 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  FROM golang:1.24-alpine AS triage-step-builder
     5  
     6  WORKDIR /build
     7  
     8  # Prepare the dependencies.
     9  COPY go.mod go.sum ./
    10  RUN go mod download
    11  
    12  # Build the tool.
    13  COPY pkg/ pkg/
    14  # TODO: get rid of this dependency.
    15  COPY prog/ prog/
    16  COPY dashboard/dashapi/ dashboard/dashapi/
    17  COPY sys/targets/ sys/targets/ 
    18  COPY syz-cluster/workflow/triage-step/*.go syz-cluster/workflow/triage-step/
    19  COPY syz-cluster/pkg/ syz-cluster/pkg/
    20  
    21  RUN go build -o /build/triage-step-bin /build/syz-cluster/workflow/triage-step
    22  
    23  FROM ubuntu:latest
    24  
    25  RUN apt-get update && \
    26      apt-get install -y git
    27  
    28  # pkg/osutil uses syzkaller user for sandboxing.
    29  RUN useradd -u 10000 --create-home syzkaller
    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=triage-step-builder /build/triage-step-bin /bin/triage-step
    35  
    36  ENTRYPOINT ["/bin/series-tracker"]