Skip to content

Commit

Permalink
Bump Go and Alpine in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
codebien committed Aug 29, 2024
1 parent f8e8fb3 commit 7816632
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
ENTRYPOINT ["k6"]

0 comments on commit 7816632

Please sign in to comment.