From 7816632de70b794c2cd37ab0720f823ea5cdf934 Mon Sep 17 00:00:00 2001 From: codebien <2103732+codebien@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:28:45 +0200 Subject: [PATCH] Bump Go and Alpine in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4718d8d..95e1ab2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM golang:1.20-alpine3.17 as builder +FROM golang:1.22-alpine3.20 as builder WORKDIR $GOPATH/src/go.k6.io/k6 ADD . . RUN apk --no-cache add git RUN go install go.k6.io/xk6/cmd/xk6@latest RUN xk6 build --with github.com/grafana/xk6-output-influxdb=. --output /tmp/k6 -FROM alpine:3.17 +FROM alpine:3.20 RUN apk add --no-cache ca-certificates && \ adduser -D -u 12345 -g 12345 k6 COPY --from=builder /tmp/k6 /usr/bin/k6 USER 12345 WORKDIR /home/k6 -ENTRYPOINT ["k6"] \ No newline at end of file +ENTRYPOINT ["k6"]