Skip to content

Commit

Permalink
Use default image for k6-runner
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado Ferrero <[email protected]>
  • Loading branch information
JorTurFer authored Aug 22, 2023
1 parent 931cbe2 commit d2a3e47
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions k6-runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ RUN GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" xk6 build \
--with github.com/grafana/xk6-disruptor@latest \
--with github.com/JorTurFer/xk6-input-prometheus@latest

FROM gcr.io/distroless/static:nonroot
WORKDIR /
# Runtime
FROM alpine:3.18 as release

RUN apk add --no-cache ca-certificates && \
adduser -D -u 12345 -g 12345 k6
COPY --from=builder /tmp/k6 /usr/bin/k6
# 65532 is numeric for nonroot
USER 65532:65532

USER k6
WORKDIR /home/k6

ENTRYPOINT ["k6"]

0 comments on commit d2a3e47

Please sign in to comment.