github.com/kubeshop/testkube@v1.17.23/contrib/executor/k6/build/agent/Dockerfile (about) 1 FROM golang:1.21 as builder 2 # # build k6 0.36.0 with prometheus support 3 ENV K6_VERSION=v0.48.0 4 RUN go install go.k6.io/xk6/cmd/xk6@v0.10.0 && xk6 build $K6_VERSION --with github.com/grafana/xk6-output-prometheus-remote@latest 5 6 # syntax=docker/dockerfile:1 7 FROM grafana/k6:0.48.0 8 COPY k6 /bin/runner 9 WORKDIR /home/k6 10 COPY --from=builder /go/k6 /usr/bin/k6 11 ENTRYPOINT ["/bin/runner"]