forked from grafana/xk6-client-tracing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 639 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (19 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM golang:1.24-alpine AS xk6-client-tracing-build
RUN apk add --no-cache \
build-base \
gcc \
git \
make
RUN go install go.k6.io/xk6/cmd/xk6@latest \
&& wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.64.6 \
&& golangci-lint --version
WORKDIR /opt/xk6-client-tracing
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN make build
FROM alpine:latest
COPY --from=xk6-client-tracing-build /opt/xk6-client-tracing/k6-tracing /k6-tracing
COPY ./examples/template/template.js /example-script.js
ENTRYPOINT [ "/k6-tracing" ]
CMD ["run", "/example-script.js"]