概述
注意: 这是 https://hub.docker.com/_/buildpack-deps 的 arm64v8 架构专用仓库。更多信息请参见官方镜像文档中的 https://github.com/docker-library/official-images#architectures-other-than-amd64 和官方镜像 FAQ 中的 https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what%E3%80%82
buildpack-deps 镜像旨在提供一个包含大量开发依赖的基础环境,类似于 https://github.com/heroku/stack-images/blob/master/bin/cedar.sh%E3%80%82%E5%AE%83%E5%8C%85%E5%90%AB%E4%BC%97%E5%A4%9A%E5%BC%80%E5%8F%91%E5%A4%B4%E6%96%87%E4%BB%B6%E5%92%8C%E5%B7%A5%E5%85%B7%E5%8C%85%EF%BC%8C%E6%94%AF%E6%8C%81 Ruby Gems、PyPI 模块等各类依赖的编译安装,无需预先知晓具体依赖的系统级开发包需求(如 ssl.h 等)。
!https://raw.githubusercontent.com/docker-library/docs/01c***b2fe592c1f93a13b4e289ada0e3a1/buildpack-deps/logo.png
核心功能和特性
主要标签(完整版本)
包含完整的开发依赖集合,支持绝大多数 gem install、npm install、pip install 等操作,无需额外安装系统级开发包。
变体版本
curl 变体
- 基于基础镜像,仅包含
curl、wget 和 ca-certificates 包
- 适用于仅需下载功能的场景(如 Java JRE 环境)
scm 变体
- 基于
curl 变体,额外包含版本控制工具:bzr、git、hg、svn(不含 cvs)
- 适用于需要代码检出功能的场景(如 Java JDK 环境)
使用场景和适用范围
- 语言栈基础镜像:作为各类语言栈镜像(如 Ruby、Python、Node.js)的基础,提供编译环境
- 依赖编译环境:需要编译安装第三方模块的应用开发场景
- 轻量级场景:
curl 变体适合仅需网络下载的环境;scm 变体适合需要版本控制的开发环境
使用方法和配置说明
拉取镜像
bash
# 拉取最新稳定版(trixie)
docker pull arm64v8/buildpack-deps:latest
# 拉取特定版本(如 bookworm)
docker pull arm64v8/buildpack-deps:bookworm
# 拉取 curl 变体
docker pull arm64v8/buildpack-deps:bookworm-curl
运行容器
基础使用(完整版本)
bash
# 启动交互式终端
docker run -it --rm arm64v8/buildpack-deps:bookworm /bin/bash
# 在容器内测试 gem install(示例)
gem install nokogiri # 无需额外安装 libxml2 开发包
使用 curl 变体
bash
# 使用 curl 变体下载文件
docker run --rm arm64v8/buildpack-deps:bookworm-curl curl -O https://example.com/file.tar.gz
使用 scm 变体
bash
# 使用 scm 变体克隆 Git 仓库
docker run --rm arm64v8/buildpack-deps:bookworm-scm git clone https://github.com/example/repo.git
支持的标签及对应 Dockerfile 链接
Debian 系列
- https://github.com/docker-library/buildpack-deps/blob/3e18c3af1f5dce6a48abf036857f9097b6bd79cc/debian/bookworm/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/d0ecd4b7313e9bc6b00d9a4fe62ad5787bc197ae/debian/bookworm/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/d0ecd4b7313e9bc6b00d9a4fe62ad5787bc197ae/debian/bookworm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/93d6db0797f91ab674535553b7e0e762941a02d0/debian/bullseye/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/d0ecd4b7313e9bc6b00d9a4fe62ad5787bc197ae/debian/bullseye/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/d0ecd4b7313e9bc6b00d9a4fe62ad5787bc197ae/debian/bullseye/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/6fbd1fd6aa***b10f11a97c31b9da1ac09db76/debian/forky/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/6fbd1fd6aa***b10f11a97c31b9da1ac09db76/debian/forky/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/6fbd1fd6aa***b10f11a97c31b9da1ac09db76/debian/forky/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/2b3a8b7d1f8875865034be3bab98ddd737e37d5e/debian/sid/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/2b3a8b7d1f8875865034be3bab98ddd737e37d5e/debian/sid/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/2b3a8b7d1f8875865034be3bab98ddd737e37d5e/debian/sid/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/1f4fe499c668d9a2e1578aa8db4f0b2d***cf5/debian/trixie/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/1f4fe499c668d9a2e1578aa8db4f0b2d***cf5/debian/trixie/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/1f4fe499c668d9a2e1578aa8db4f0b2d***cf5/debian/trixie/Dockerfile
Ubuntu 系列
- https://github.com/docker-library/buildpack-deps/blob/93d6db0797f91ab674535553b7e0e762941a02d0/ubuntu/jammy/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/d0ecd4b7313e9bc6b00d9a4fe62ad5787bc197ae/ubuntu/jammy/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/d0ecd4b7313e9bc6b00d9a4fe62ad5787bc197ae/ubuntu/jammy/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/60dc5f9555c521de086b2f5770514faf69ee2cc4/ubuntu/noble/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/60dc5f9555c521de086b2f5770514faf69ee2cc4/ubuntu/noble/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/60dc5f9555c521de086b2f5770514faf69ee2cc4/ubuntu/noble/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/ab3ae04e943ecb240a9691dfa1de219b4a3e32a0/ubuntu/plucky/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/ab3ae04e943ecb240a9691dfa1de219b4a3e32a0/ubuntu/plucky/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/ab3ae04e943ecb240a9691dfa1de219b4a3e32a0/ubuntu/plucky/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/99e7dc24c50c0a7be371ea9e6aed6134ce4cbfeb/ubuntu/questing/curl/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/99e7dc24c50c0a7be371ea9e6aed6134ce4cbfeb/ubuntu/questing/scm/Dockerfile
- https://github.com/docker-library/buildpack-deps/blob/99e7dc24c50c0a7be371ea9e6aed6134ce4cbfeb/ubuntu/questing/Dockerfile
参考信息
维护者
https://github.com/docker-library/buildpack-deps
支持渠道
- Docker Community Slack
- Server Fault
- Unix & Linux
- Stack Overflow
支持的架构
https://hub.docker.com/r/amd64/buildpack-deps/%E3%80%81https://hub.docker.com/r/arm32v5/buildpack-deps/%E3%80%81https://hub.docker.com/r/arm32v7/buildpack-deps/%E3%80%81https://hub.docker.com/r/arm64v8/buildpack-deps/%E3%80%81https://hub.docker.com/r/i386/buildpack-deps/%E3%80%81https://hub.docker.com/r/mips64le/buildpack-deps/%E3%80%81https://hub.docker.com/r/ppc64le/buildpack-deps/%E3%80%81https://hub.docker.com/r/riscv64/buildpack-deps/%E3%80%81https://hub.docker.com/r/s390x/buildpack-deps/
镜像信息
- https://github.com/docker-library/repo-info/blob/master/repos/buildpack-deps
- https://github.com/docker-library/repo-info/commits/master/repos/buildpack-deps
镜像更新
- https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fbuildpack-deps
- https://github.com/docker-library/official-images/blob/master/library/buildpack-deps
- https://github.com/docker-library/official-images/commits/master/library/buildpack-deps
许可信息
本镜像包含的软件许可信息请参见 Debian 许可指南。
与所有 Docker 镜像一样,本镜像可能包含其他软件(如 Bash 等基础系统组件),这些软件可能具有独立许可。镜像使用者有责任确保其使用符合所有包含软件的许可要求。
更多许可信息可在 https://github.com/docker-library/repo-info/tree/master/repos/buildpack-deps 中找到。