delve/pkg/proc/internal/ebpf/build/ebpf-Dockerfile
Derek Parker a88c9bde4a
pkg/proc: add build scripts & docker image for ebpf (#2847)
Adds a few build scripts and a container image for reproducible builds
of the ebpf programs.
2021-12-30 09:04:59 +01:00

20 lines
450 B
Plaintext

FROM ubuntu:21.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
gcc-multilib \
git \
wget \
clang \
linux-headers-5.11.0-40 \
libbpf-dev
RUN wget https://golang.org/dl/go1.17.3.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.17.3.linux-amd64.tar.gz
RUN cp /usr/local/go/bin/go /usr/bin/go
WORKDIR /delve-bpf/pkg/proc/internal/ebpf/
CMD [ "go", "generate", "./..." ]