This commit is contained in:
yunwei37
2024-10-03 03:31:55 +00:00
parent 252625d27c
commit 6f7bc37a6a
353 changed files with 165801 additions and 0 deletions

39
third_party/bpftool/Dockerfile vendored Normal file
View File

@@ -0,0 +1,39 @@
# With this Dockerfile, you can create a container image:
# $ docker build -f Dockerfile -t bpftool .
# And then use it:
# $ docker run --rm -ti --privileged --pid=host bpftool prog
# hadolint global ignore=DL3008
FROM ubuntu:22.04 as builder
RUN \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get -y install --no-install-recommends \
build-essential \
libelf-dev \
libz-dev \
libcap-dev \
clang llvm llvm-dev lld \
binutils-dev \
pkg-config && \
rm -rf /var/lib/apt/lists/*
COPY . /src
RUN \
make -C /src/src clean && \
make -C /src/src -j "$(nproc)"
FROM ubuntu:22.04
RUN \
export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get -y install --no-install-recommends \
libelf1 \
llvm && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /src/src/bpftool /bin/bpftool
ENTRYPOINT ["/bin/bpftool"]