diff --git a/Dockerfile b/Dockerfile index 206054aabea..6b5d5d27be8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,7 +63,7 @@ RUN if [ $BUILDARCH != $TARGETARCH ]; \ else apt-get install -y curl git llvm gcc pkg-config zlib1g-dev libelf-dev libcap-dev; fi # v7.1.0 ENV BPFTOOL_REV "b01941c8f7890489f09713348a7d89567538504b" -RUN git clone --recurse-submodules https://github.com/libbpf/bpftool.git . && git checkout ${BPFTOOL_REV} +RUN git clone https://github.com/libbpf/bpftool.git . && git checkout ${BPFTOOL_REV} && git submodule update --init --recursive RUN if [ $BUILDARCH != $TARGETARCH ]; \ then make -C src EXTRA_CFLAGS=--static CC=aarch64-linux-gnu-gcc -j $(nproc) && aarch64-linux-gnu-strip src/bpftool; \ else make -C src EXTRA_CFLAGS=--static -j $(nproc) && strip src/bpftool; fi