2023-11-16 17:49:44 +00:00
|
|
|
ARG BASE_IMAGE=node:20-bookworm-slim
|
2023-12-22 09:24:56 +00:00
|
|
|
ARG LLVM_VERSION=16
|
2023-11-16 17:49:44 +00:00
|
|
|
|
|
|
|
FROM ${BASE_IMAGE}
|
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/var/lib/apt \
|
|
|
|
--mount=type=cache,target=/var/lib/cache \
|
|
|
|
apt-get update && \
|
2023-12-22 09:24:56 +00:00
|
|
|
apt-get install -y \
|
|
|
|
sudo \
|
|
|
|
git-lfs \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
jq \
|
|
|
|
gnupg \
|
|
|
|
gcc \
|
|
|
|
clang-${LLVM_VERSION} \
|
|
|
|
llvm-${LLVM_VERSION} \
|
|
|
|
libbpf-dev \
|
|
|
|
make \
|
|
|
|
unzip \
|
|
|
|
libgraphite2-3 \
|
|
|
|
zstd && \
|
2023-12-22 15:49:11 +00:00
|
|
|
ln -s /usr/lib/llvm-16/bin/clang /usr/bin/clang && \
|
2023-12-22 09:24:56 +00:00
|
|
|
ln -s -f /usr/lib/llvm-16/bin/llc /usr/bin/ && \
|
2023-11-29 19:19:24 +00:00
|
|
|
mkdir -p /etc/apt/keyrings/ && \
|
2023-11-16 17:49:44 +00:00
|
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
|
|
|
|
echo \
|
|
|
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
|
|
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" > /etc/apt/sources.list.d/docker.list && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin
|