镜像构建历史
# 2025-11-18 12:36:59 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2025-11-18 12:36:59 36.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
# 2025-11-18 12:36:59 39.56MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev libzstd-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
# 2025-11-18 12:31:13 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=2299dae542d395ce3883aca00d3c910307cd68e0b2f7336098c8e7b7eee9f3e9
# 2025-11-18 12:31:13 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.14.0
# 2025-11-18 12:31:13 3.86MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit
# 2025-11-18 12:31:13 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-11-17 08:00:00 100.56MB
# debian.sh --arch 'arm64' out/ 'trixie' '@1763337600'
镜像信息
{
"Id": "sha256:4c52aa327cbe16a222bffdcf66891296ea2ee7b7f8d09bfe382230a714d596a0",
"RepoTags": [
"python:3.14.0-slim-trixie",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.14.0-slim-trixie-linuxarm64"
],
"RepoDigests": [
"python@sha256:0aecac02dc3d4c5dbb024b753af084cafe41f5416e02193f1ce345d671ec966e",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python@sha256:7942f753c8a72ebdd4405d8e615243fdc9fb5ea123741647451de7b1b525eb7c"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-11-18T04:36:59.504422622Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PYTHON_VERSION=3.14.0",
"PYTHON_SHA256=2299dae542d395ce3883aca00d3c910307cd68e0b2f7336098c8e7b7eee9f3e9"
],
"Cmd": [
"python3"
],
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "arm64",
"Variant": "v8",
"Os": "linux",
"Size": 143973095,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/5f21b6a6892eaa65722d375075ad6c9b46607d63b20bd754bd92e0a41bd48e15/diff:/var/lib/docker/overlay2/b1ff8d26b4cd6cb82d4c5d43810cbce82623d3a6475862a368647932d4d0fbfe/diff:/var/lib/docker/overlay2/e4327f94b286e6f2a5e08a62492b5a28f055bddb7ddfd2b02bc85e912559a798/diff",
"MergedDir": "/var/lib/docker/overlay2/95b4b913b0e03c2408ec72887fa63af67037d4622ba8f933e5be0a664225eb5c/merged",
"UpperDir": "/var/lib/docker/overlay2/95b4b913b0e03c2408ec72887fa63af67037d4622ba8f933e5be0a664225eb5c/diff",
"WorkDir": "/var/lib/docker/overlay2/95b4b913b0e03c2408ec72887fa63af67037d4622ba8f933e5be0a664225eb5c/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f1b30ab9918326dc2f4c25f16c0e6c13e9a48427441ea41c0e4d8f3e6699da24",
"sha256:354b9a30fe31aecb8ef17c3308c4731a26f351f67f00cad664e5509cc20a49f5",
"sha256:d39e597355adc024f6de3b5fd08afe7f08351152901abd0d63d50dfee32cdee9",
"sha256:b3b4a77d65dfef38f7e3cade523ef6cb475c74476b14c08a063abaf17aad9e0a"
]
},
"Metadata": {
"LastTagTime": "2025-11-28T21:47:10.605435025+08:00"
}
}