forgejo-runner (sha256:6dc11044efb9aa1aa48ea8ff5f2c89a8d8c344f2f8b8ddb0bf53d0fe201a5d5e)

由public于2026-08-20 21:33:39 +08:00发布

安装

docker pull git.knot.ink/public/forgejo-runner@sha256:6dc11044efb9aa1aa48ea8ff5f2c89a8d8c344f2f8b8ddb0bf53d0fe201a5d5e
sha256:6dc11044efb9aa1aa48ea8ff5f2c89a8d8c344f2f8b8ddb0bf53d0fe201a5d5e

镜像分层

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=24.04
ADD file:0387b3d029de8fa08641ccfaa44c6a4ad07b93035420d53b49783ea27527d153 in /
CMD ["/bin/bash"]
ARG TARGETARCH
ARG NODE_VERSION=24.19.0
ARG YARN_VERSION=1.22.22
ARG PNPM_VERSION=11.22.0
ENV DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC LANG=C.UTF-8 LC_ALL=C.UTF-8 RUNNER_OS=Linux RUNNER_TEMP=/tmp/runner RUNNER_TOOL_CACHE=/opt/hostedtoolcache AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
SHELL [/bin/bash -o pipefail -c]
RUN |4 TARGETARCH=arm64 NODE_VERSION=24.19.0 YARN_VERSION=1.22.22 PNPM_VERSION=11.22.0 /bin/bash -o pipefail -c apt-get update && apt-get install -y --no-install-recommends bash ca-certificates curl file git git-lfs gnupg gzip jq openssh-client python3 python3-pip python3-venv rsync sudo tar unzip wget xz-utils zip zstd && rm -rf /var/lib/apt/lists/* && ln -sfn /usr/bin/python3 /usr/local/bin/python && ln -sfn /usr/bin/pip3 /usr/local/bin/pip && git lfs install --system # buildkit
RUN |4 TARGETARCH=arm64 NODE_VERSION=24.19.0 YARN_VERSION=1.22.22 PNPM_VERSION=11.22.0 /bin/bash -o pipefail -c set -eux; case "${TARGETARCH}" in amd64) node_arch=x64 ;; arm64) node_arch=arm64 ;; *) echo "Unsupported architecture: ${TARGETARCH}" >&2; exit 1 ;; esac; node_file="node-v${NODE_VERSION}-linux-${node_arch}.tar.xz"; node_base="https://nodejs.org/dist/v${NODE_VERSION}"; curl -fsSL --retry 5 "${node_base}/${node_file}" -o "/tmp/${node_file}"; curl -fsSL --retry 5 "${node_base}/SHASUMS256.txt" -o /tmp/node-shasums.txt; cd /tmp; grep -F " ${node_file}" node-shasums.txt | sha256sum -c -; mkdir -p "/opt/node/${NODE_VERSION}"; tar -xJf "${node_file}" --strip-components=1 -C "/opt/node/${NODE_VERSION}"; rm -f "${node_file}" node-shasums.txt; for command in node npm npx; do ln -sfn "/opt/node/${NODE_VERSION}/bin/${command}" "/usr/local/bin/${command}"; done; npm install --global "yarn@${YARN_VERSION}" "pnpm@${PNPM_VERSION}"; ln -sfn "/opt/node/${NODE_VERSION}/bin/yarn" /usr/local/bin/yarn; ln -sfn "/opt/node/${NODE_VERSION}/bin/pnpm" /usr/local/bin/pnpm # buildkit
RUN |4 TARGETARCH=arm64 NODE_VERSION=24.19.0 YARN_VERSION=1.22.22 PNPM_VERSION=11.22.0 /bin/bash -o pipefail -c set -eux; install -m 0755 -d /etc/apt/keyrings; curl -fsSL --retry 5 https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc; chmod a+r /etc/apt/keyrings/docker.asc; echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" > /etc/apt/sources.list.d/docker.list; apt-get update; apt-get install -y --no-install-recommends docker-buildx-plugin docker-ce-cli docker-compose-plugin; rm -rf /var/lib/apt/lists/* # buildkit
RUN |4 TARGETARCH=arm64 NODE_VERSION=24.19.0 YARN_VERSION=1.22.22 PNPM_VERSION=11.22.0 /bin/bash -o pipefail -c install -d -m 1777 "${RUNNER_TEMP}" && install -d -m 0755 /github/home /github/workflow /github/workspace /root/.cache /root/.config /root/.npm /workspace "${RUNNER_TOOL_CACHE}" && git --version && node --version && npm --version && docker --version && docker buildx version && docker compose version # buildkit
WORKDIR /workspace
CMD ["/bin/bash"]

标签

键 值
org.opencontainers.image.version 24.04
详情
Container
2026-08-20 21:33:39 +08:00
1
OCI / Docker
linux/arm64
212 MiB
版本 (1) 查看全部
base-arm64 2026-08-20