diff --git a/Dockerfile b/Dockerfile index c801946f..7becad4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,14 @@ RUN apt-get update && \ RUN mkdir /build && \ git clone --branch v1.2.0 --depth 1 https://github.com/libbpf/libbpf.git /build/libbpf && \ - make -j $(nproc) -C /build/libbpf/src BUILD_STATIC_ONLY=y LIBSUBDIR=lib install && \ - tar -czf /build/libbpf.tar.gz /usr/lib/libbpf.a /usr/lib/pkgconfig/libbpf.pc /usr/include/bpf + make -j $(nproc) -C /build/libbpf/src BUILD_STATIC_ONLY=y LIBSUBDIR=lib install install_uapi_headers && \ + tar -czf /build/libbpf.tar.gz \ + /usr/lib/libbpf.a \ + /usr/lib/pkgconfig/libbpf.pc \ + /usr/include/bpf \ + /usr/include/uapi/linux/bpf.h \ + /usr/include/uapi/linux/bpf_common.h \ + /usr/include/uapi/linux/btf.h COPY ./ /build/ebpf_exporter