diff --git a/Dockerfile.bpftracebase b/Dockerfile.bpftracebase index 88042d40..41b33d72 100644 --- a/Dockerfile.bpftracebase +++ b/Dockerfile.bpftracebase @@ -1,6 +1,5 @@ -ARG bpftracesha - FROM alpine:3.8 as builder +ARG bpftracesha ENV STATIC_LINKING=ON ENV RUN_TESTS=0 RUN apk add --update \ @@ -24,11 +23,12 @@ RUN ln -s /usr/include/llvm5/llvm-c /usr/include/llvm-c WORKDIR / -RUN git clone https://github.com/iovisor/bpftrace.git /bpftrace +ADD https://github.com/iovisor/bpftrace/archive/${bpftracesha}.tar.gz /bpftrace.tar.gz +RUN tar -xvf /bpftrace.tar.gz -WORKDIR /bpftrace +RUN mv bpftrace-${bpftracesha} /bpftrace -#RUN git checkout ${bpftracesha} +WORKDIR /bpftrace WORKDIR /bpftrace/docker