Files
Jing ChenandgVisor bot 57870cdbff Fix benchmark Dockerfile build.
images/benchmarks/hey/Dockerfile failed to build
because it used FROM golang:1.15 as build. Upstream dependencies of
hey now import standard library packages introduced in newer Go
releases ("io/fs" from Go 1.16 and "slices" from Go 1.21), causing
compiler errors in Go 1.15.

PiperOrigin-RevId: 957459102
2026-07-31 20:17:03 -07:00

12 lines
329 B
Docker

FROM golang:1.25 AS build
RUN CGO_ENABLED=0 go install github.com/rakyll/hey@latest
RUN cp /go/bin/hey /hey
FROM ubuntu:jammy
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
wget ca-certificates \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /hey /bin/hey