镜像构建历史
# 2024-06-27 05:58:20 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-06-27 05:58:20 10.93MB 执行命令并创建新的镜像层
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" ; rm -f get-pip.py; pip --version # buildkit
# 2024-06-27 05:58:20 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=0f8bb2652c0b0965f268312f49ec21e772d421d381af4324beea66b8acf2635c
# 2024-06-27 05:58:20 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/ac00c61f60b2df101b7cdf90ed319b625ac93b42/public/get-pip.py
# 2024-06-27 05:58:20 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.0
# 2024-06-27 05:58:20 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-06-27 05:58:20 34.57MB 执行命令并创建新的镜像层
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-06-27 05:58:20 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.12.4
# 2024-06-27 05:58:20 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2024-06-27 05:58:20 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-06-27 05:58:20 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-06-27 05:58:20 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-06-27 05:58:20 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-06-27 05:58:20 74.78MB
/bin/sh -c #(nop) ADD file:b24689567a7c604de93e4ef1dc87c372514f692556744da43925c575b4f80df6 in /
镜像信息
{
"Id": "sha256:36d84f5948d07f0d0b1cb5c9cbbfba92669c5f25278fbe25d448611185940cb3",
"RepoTags": [
"python:3.12-slim",
"docker.tae-tea.net/k8s/python:3.12-slim",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.12-slim"
],
"RepoDigests": [
"python@sha256:d5f16749562233aa4bd26538771d76bf0dfd0a0ea7ea8771985e267451397ae4",
"docker.tae-tea.net/k8s/python@sha256:8d86cd5ae705baa369b0a74881b4811f28a60d2a2900d2a6221b65be7d481101",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python@sha256:8d86cd5ae705baa369b0a74881b4811f28a60d2a2900d2a6221b65be7d481101"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-06-26T21:58:20Z",
"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=7169605F62C751356D054A26A821E680E5FA6305",
"PYTHON_VERSION=3.12.4",
"PYTHON_PIP_VERSION=24.0",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/ac00c61f60b2df101b7cdf90ed319b625ac93b42/public/get-pip.py",
"PYTHON_GET_PIP_SHA256=0f8bb2652c0b0965f268312f49ec21e772d421d381af4324beea66b8acf2635c"
],
"Cmd": [
"python3"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 129495129,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8e6ac8f0c67f0fb95830b274596a0228bc2331ac6dbd81c391323a250cf9b5f9/diff:/var/lib/docker/overlay2/48dfaadf7333d0fa063facaa6d3f57ced259aa6f761787a14ef4e408627e0b54/diff:/var/lib/docker/overlay2/9d82379d19e2c042cc3afffc1c745fab6fc4c17c4676f2f372345872b06bd203/diff:/var/lib/docker/overlay2/932069d1e2b0694ecb65c62363f2fb2caef13a91e555768dd3b8a4a6dc954ff5/diff",
"MergedDir": "/var/lib/docker/overlay2/91f0c1c38b72c7131ba19be8eafb7688a68cef4755f273b30f9f01cc4d4bcb44/merged",
"UpperDir": "/var/lib/docker/overlay2/91f0c1c38b72c7131ba19be8eafb7688a68cef4755f273b30f9f01cc4d4bcb44/diff",
"WorkDir": "/var/lib/docker/overlay2/91f0c1c38b72c7131ba19be8eafb7688a68cef4755f273b30f9f01cc4d4bcb44/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:32148f9f6c5aadfa167ee7b146b9703c59307049d68b090c19db019fd15c5406",
"sha256:69b57694b4ea9a8d7433184afdfa121132297265cecb11af64db9177fc1e12e1",
"sha256:508c3f3a77bc18c936983fbf7f59006f20288215c3e737126e146083b99c9c47",
"sha256:3435413f70bf423b791d0873374c6caaa81192dcfefa976db1348a2edfbd7d7c",
"sha256:26e71bc515e51dc37fb3ab08a6d8eb6bab724da66f9214f78243f364f0c4001e"
]
},
"Metadata": {
"LastTagTime": "2024-07-09T16:33:55.596992068+08:00"
}
}