Skip to content

Commit

Permalink
Merge pull request #195 from cloudflare/ivan/dockerfile-bump
Browse files Browse the repository at this point in the history
Bump libbpf to v1.1 and Go to 1.20 in Dockerfile
  • Loading branch information
bobrik authored Mar 18, 2023
2 parents fb51d1a + 9a06737 commit 02dc319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:1.19-bullseye as builder
FROM golang:1.20-bullseye as builder

RUN apt-get update && \
apt-get install -y --no-install-recommends libelf-dev

RUN mkdir /build && \
git clone --branch v1.0.1 --depth 1 https://github.com/libbpf/libbpf.git /build/libbpf && \
git clone --branch v1.1.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

Expand Down

0 comments on commit 02dc319

Please sign in to comment.