镜像构建历史
# 2024-08-07 23:49:22 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-08-07 23:49:22 12.77MB 执行命令并创建新的镜像层
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-08-07 23:49:22 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=6fb7b781206356f45ad79efbb19322caa6c2a5ad39092d0d44d0fec94117e118
# 2024-08-07 23:49:22 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/66d8a0f637083e2c3ddffc0cb1e65ce126afb856/public/get-pip.py
# 2024-08-07 23:49:22 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.2
# 2024-08-07 23:49:22 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-08-07 23:49:22 32.05MB 执行命令并创建新的镜像层
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-08-07 23:49:22 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.12.5
# 2024-08-07 23:49:22 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2024-08-07 23:49:22 3.11MB 执行命令并创建新的镜像层
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-08-07 23:49:22 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-08-07 23:49:22 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-08-07 23:49:22 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-08-07 23:49:22 80.63MB
/bin/sh -c #(nop) ADD file:8b272f437a81ca538a72714301aab84c945a2ff3829fd205d401f488514d36a9 in /
镜像信息
{
"Id": "sha256:3158d84a8445883e9c4eebadd5eb922cef3f163fdf0786742ac92e0d4e76f669",
"RepoTags": [
"python:3.12.5-slim-bullseye",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.12.5-slim-bullseye"
],
"RepoDigests": [
"python@sha256:e37deaebcb76e715d78f867811c86b8178ef33452a9dd23871ec7e4f207331c6",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python@sha256:ba8fe18b02abd910caec6aea9f88ff939163f8c49ecc8a0712cf293e452dfbc4"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-08-07T15:49:22Z",
"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.5",
"PYTHON_PIP_VERSION=24.2",
"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": 128564952,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e9522c800add40a2a15aacf0eb915f0f3383dde996d933a5844ffdc488640f8c/diff:/var/lib/docker/overlay2/c155b8c77189f3e6adafb1fdc9b9d925311363913f9b016a1edd8e4d81d6fba9/diff:/var/lib/docker/overlay2/bb9104f2b10238036e7838cd592c6afa8158a7cafde1f5e2eed27cd7ac1436ce/diff:/var/lib/docker/overlay2/526ad675859c55dcdb800aa110c540648dca16c4cb3a02dfd105d73726b06186/diff",
"MergedDir": "/var/lib/docker/overlay2/61f5d54b906d035b94c3e54540cf0f05eb58e14870d9e831041e3678651bf241/merged",
"UpperDir": "/var/lib/docker/overlay2/61f5d54b906d035b94c3e54540cf0f05eb58e14870d9e831041e3678651bf241/diff",
"WorkDir": "/var/lib/docker/overlay2/61f5d54b906d035b94c3e54540cf0f05eb58e14870d9e831041e3678651bf241/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:bf63823f8c99230524222455e257256ec7cf0963d3be83782d0a3499638619c2",
"sha256:bda90f709cd314457647d8b4543a4162904911c45f80536315f7d296ee2ca5aa",
"sha256:e1448a92748948ef3de804705c3911829a64c18a1bd68bec4d5742c0b34732f3",
"sha256:3c394dcaebc2300d6a5fbabace34937b951e7840b3f351316c2d5d0b458a6582",
"sha256:19e06aa4aa40a00a4e2ccd1eb544595d6e6b9c5c41eba138aff6b9d4f1105310"
]
},
"Metadata": {
"LastTagTime": "2024-08-27T13:31:23.668971269+08:00"
}
}