github.com/grafana/pyroscope@v1.18.0/examples/grafana-alloy-auto-instrumentation/ebpf-otel/Dockerfile (about) 1 FROM ubuntu:22.04 as builder 2 RUN apt-get update && apt-get -y install wget gcc 3 RUN wget https://go.dev/dl/go1.22.10.linux-amd64.tar.gz 4 RUN tar -C /usr/local -xzf go1.22.10.linux-amd64.tar.gz 5 # fixed versions for pyroscope, otel-collector, otel-profiler due to protocol changes 6 RUN wget https://github.com/open-telemetry/opentelemetry-ebpf-profiler/archive/19cb11e6bf00c04e4f8d793e944e71478f9608d9.tar.gz 7 RUN mkdir /profiler 8 RUN tar --strip-components=1 -C /profiler -xzf 19cb11e6bf00c04e4f8d793e944e71478f9608d9.tar.gz 9 WORKDIR /profiler 10 RUN /usr/local/go/bin/go build . 11 12 FROM ubuntu:22.04 13 14 RUN apt-get update && \ 15 apt-get install -y linux-headers-generic && \ 16 rm -rf /var/lib/apt/lists/* 17 18 COPY --from=builder /profiler/ebpf-profiler /usr/local/bin/ 19 20 ENTRYPOINT ["/usr/local/bin/ebpf-profiler"]