add dotnet docker
This commit is contained in:
parent
0530700031
commit
03d0b66430
15
k6-influxdb.dockerfile
Normal file
15
k6-influxdb.dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM golang:1.20-alpine3.17 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
|
||||||
|
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"]
|
Loading…
x
Reference in New Issue
Block a user