images/act_runtime/Dockerfile
Peter 235387c37e
Some checks failed
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest) (push) Failing after 11s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest-amd64) (push) Failing after 12m34s
Image builds / build_images (renovate) (push) Failing after 1m48s
Image builds / build-ente-images (photos) (push) Failing after 3m13s
Image builds / build-ente-images (cast) (push) Failing after 17m9s
act_runtime / build_images (node:20-bookworm-slim, ubuntu-latest) (push) Failing after 17m35s
act_runtime / build_images (node:20-bullseye-slim, ubuntu-latest-amd64) (push) Successful in 5m13s
chore(deps): update node docker tag to v23
2024-10-17 03:35:21 +00:00

44 lines
No EOL
1.6 KiB
Docker

# syntax=docker/dockerfile:1
ARG BASE_IMAGE=node:23-bookworm-slim
FROM ${BASE_IMAGE}
ARG LLVM_VERSION=16
# common tools
RUN --mount=type=cache,target=/var/lib/apt \
--mount=type=cache,target=/var/lib/cache \
--mount=type=cache,target=/var/cache/apt \
apt-get update && \
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 && \
ln -s /usr/lib/llvm-${LLVM_VERSION}/bin/clang /usr/bin/clang && \
ln -s -f /usr/lib/llvm-${LLVM_VERSION}/bin/llc /usr/bin/
ADD --chmod=444 https://cli.github.com/packages/githubcli-archive-keyring.gpg /etc/apt/keyrings/githubcli-archive-keyring.gpg
ADD --chmod=444 https://download.docker.com/linux/debian/gpg /etc/apt/keyrings/docker.asc
# Docker and other tools
RUN --mount=type=cache,target=/var/lib/apt \
--mount=type=cache,target=/var/lib/cache \
--mount=type=cache,target=/var/cache/apt \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] 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 \
gh \
docker-ce docker-ce-cli containerd.io docker-buildx-plugin \