mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
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
12 lines
329 B
Docker
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
|