forked from cilium/ebpf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 965 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This Dockerfile generates a build environment for generating ELFs
# of testdata programs. Run `make build` in this directory to build it.
FROM golang:bullseye
COPY llvm-snapshot.gpg.key .
RUN apt-get update && \
apt-get -y --no-install-recommends install ca-certificates gnupg && \
apt-key add llvm-snapshot.gpg.key && \
rm llvm-snapshot.gpg.key && \
apt-get remove -y gnupg && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
COPY llvm.list /etc/apt/sources.list.d
RUN apt-get update && \
apt-get -y --no-install-recommends install \
make git \
libbpf-dev \
clang-format \
clang-11 llvm-11 \
clang-14 llvm-14 \
clang-17 llvm-17 && \
rm -rf /var/lib/apt/lists/*
# Examples use `#include <asm/types.h>` which Debian carries in asm-generic/ instead.
RUN ln -s /usr/include/asm-generic /usr/include/asm
RUN GOBIN=/usr/local/bin go install golang.org/x/tools/cmd/stringer@latest && rm -rf /go/pkg