镜像构建历史
# 2024-07-29 13:02:13 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-07-29 13:02:13 11.60MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit
# 2024-07-29 13:02:13 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=6fb7b781206356f45ad79efbb19322caa6c2a5ad39092d0d44d0fec94117e118
# 2024-07-29 13:02:13 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66d8a0f637083e2c3ddffc0cb1e65ce126afb856/public/get-pip.py
# 2024-07-29 13:02:13 0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
# 2024-07-29 13:02:13 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.0
# 2024-07-29 13:02:13 32.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 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
# 2024-07-29 13:02:13 34.31MB 执行命令并创建新的镜像层
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 libexpat1-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-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"; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; 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 --with-lto --with-system-expat --without-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" 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 -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; python3 --version # buildkit
# 2024-07-29 13:02:13 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.9
# 2024-07-29 13:02:13 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-07-29 13:02:13 9.23MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
# 2024-07-29 13:02:13 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-07-29 13:02:13 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-07-29 13:02:13 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-07-29 13:02:13 74.78MB
/bin/sh -c #(nop) ADD file:3d9897cfe027ecc7cbdb16e74a676ed143725ea2d08dbb0dde23309e041de0f3 in /
镜像信息
{
"Id": "sha256:10f461201cdbe84a59218caa9976c7a294128bef510ddb598cec9f50b5e55f04",
"RepoTags": [
"python:3.11-slim",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.11-slim"
],
"RepoDigests": [
"python@sha256:ad5dadd957a398226996bc4846e522c39f2a77340b531b28aaab85b2d361210b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python@sha256:7d567b2f56c5e180a2622c31b978e0774de268605529c74f9c57581dfbe8c269"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-07-29T05:02:13Z",
"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",
"LANG=C.UTF-8",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_VERSION=3.11.9",
"PYTHON_PIP_VERSION=24.0",
"PYTHON_SETUPTOOLS_VERSION=65.5.1",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66d8a0f637083e2c3ddffc0cb1e65ce126afb856/public/get-pip.py",
"PYTHON_GET_PIP_SHA256=6fb7b781206356f45ad79efbb19322caa6c2a5ad39092d0d44d0fec94117e118"
],
"Cmd": [
"python3"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 129913930,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/73a831de3d9a52bd19f9dc89b28006c63e2d49354cbd0dde2fb638bf6c9b2229/diff:/var/lib/docker/overlay2/89308345ed94729e696a4dc6c31db368bd09720cc0c702ebf7e7a22cea8c2709/diff:/var/lib/docker/overlay2/73c5496b8ffe58fe6612acbef9b9933ae1440fe13646fe71aa64f986a9630857/diff:/var/lib/docker/overlay2/97cc89eddab146cf3706675a0ec2f2a7b8ab07f607e85139cbe9269c6a580e53/diff",
"MergedDir": "/var/lib/docker/overlay2/33414057b6f19458264ab4e5971dd3f3b8d50a0655f40a71e0deb6f345a0f874/merged",
"UpperDir": "/var/lib/docker/overlay2/33414057b6f19458264ab4e5971dd3f3b8d50a0655f40a71e0deb6f345a0f874/diff",
"WorkDir": "/var/lib/docker/overlay2/33414057b6f19458264ab4e5971dd3f3b8d50a0655f40a71e0deb6f345a0f874/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:9853575bc4f955c5892dd64187538a6cd02dba6968eba9201854876a7a257034",
"sha256:c897e89524533bef559ab9e566ef5ed6df162e8391cd450f0acfca4f124b5d3a",
"sha256:29fa0c9cc49b00cfa17cd21e137600380679476abc30e23c7018a56dab71c93e",
"sha256:fdf783cf2812b4f5bc4a18a8ca94e22f950d15267df6b8da9146c16c76563823",
"sha256:3db20f592cb9c77fd7699b9c3c5ddf0e4439c38705ad1be1838e80cc19eb33ef"
]
},
"Metadata": {
"LastTagTime": "2024-08-15T16:05:12.355352465+08:00"
}
}