golang.org/x/build@v0.0.0-20240506185731-218518f32b70/perf/Dockerfile (about) 1 # Copyright 2022 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 FROM golang:1.21-bookworm AS builder 6 7 COPY go.mod /app/go.mod 8 COPY go.sum /app/go.sum 9 10 WORKDIR /app 11 12 RUN go mod download 13 14 COPY . /app 15 RUN go build -o perf golang.org/x/build/perf 16 17 FROM debian:bookworm 18 19 # netbase and ca-certificates are needed for dialing TLS. 20 RUN apt-get update && apt-get install -y \ 21 --no-install-recommends \ 22 netbase \ 23 ca-certificates \ 24 && rm -rf /var/lib/apt/lists/* 25 26 COPY --from=builder /app/perf / 27 ENTRYPOINT ["/perf"]