镜像构建历史
# 2025-03-31 00:05:29 0.00B 设置默认要执行的命令
CMD ["python" "main.py"]
# 2025-03-31 00:05:29 485.06MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt update && apt install gcc -y && python -m pip install -r requirements.txt && touch /.dockerenv # buildkit
# 2025-03-31 00:04:44 6.55MB 复制新文件或目录到容器中
COPY /app/web/dist ./web/dist # buildkit
# 2025-03-31 00:04:11 1.99MB 复制新文件或目录到容器中
COPY . . # buildkit
# 2025-03-31 00:04:11 0.00B 设置工作目录为/app
WORKDIR /app
# 2024-02-03 18:49:13 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-02-03 18:49:13 12.20MB 执行命令并创建新的镜像层
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-02-03 18:49:13 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
# 2024-02-03 18:49:13 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
# 2024-02-03 18:49:13 0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
# 2024-02-03 18:49:13 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=23.0.1
# 2024-02-03 18:49: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-02-03 18:49:13 31.90MB 执行命令并创建新的镜像层
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-02-03 18:49:13 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.10.13
# 2024-02-03 18:49:13 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-02-03 18:49: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-02-03 18:49:13 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-02-03 18:49:13 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-03-12 09:21:01 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-03-12 09:21:01 74.77MB
/bin/sh -c #(nop) ADD file:b86ae1c7ca3586d8feedcd9ff1b2b1e8ab872caf6587618f1da689045a5d7ae4 in /
镜像信息
{
"Id": "sha256:2843736af066b94a53a9b9500a2e5cb173fcd1e4c6b0cefe240f948fb597c8c6",
"RepoTags": [
"rockchin/langbot:v3.4.11.2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rockchin/langbot:v3.4.11.2"
],
"RepoDigests": [
"rockchin/langbot@sha256:a8d59296c7b3d27663c9bc0994b4d1333c83087d5521ea8752e95300124e2220",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rockchin/langbot@sha256:9cb15c690a3b778615207e66f93e92a73ac1005c3d3a140acd1407bfc64b03da"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-30T16:05:29.218025793Z",
"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.10.13",
"PYTHON_PIP_VERSION=23.0.1",
"PYTHON_SETUPTOOLS_VERSION=65.5.1",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py",
"PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9"
],
"Cmd": [
"python",
"main.py"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/app",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 621710444,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/1c3d14e1ec723c65657f48395c7bd708389408511f077963e1f4d2612a7da506/diff:/var/lib/docker/overlay2/9463276f96db6c1c1c226bfbdab0d33465d07ff5fbd0418f2bc4cbbf55c34425/diff:/var/lib/docker/overlay2/63e5509d74070d0d935fd2c24a15f03379aad43a97f849f3d12f038af124c978/diff:/var/lib/docker/overlay2/24e41e0ccda54b499af3da40492041c2d54678720692ea4125cff0252e2a4809/diff:/var/lib/docker/overlay2/73046ac490132baae4bb7364604e3dc2b24f0a89d0528f836c2a8c011f56f055/diff:/var/lib/docker/overlay2/bf291fcdffd2e68cdeaae0d41986bd7bd3aadb98d8fada88aea3f02a10dee54e/diff:/var/lib/docker/overlay2/a72afa7bebe947ed370ed49270d74f734fbaf39652a95886a95fdc9585f76b4a/diff:/var/lib/docker/overlay2/ab3d72d995e9b935a8c8b97802d6293ae6c0059eeed588e91f4332421d1e9546/diff",
"MergedDir": "/var/lib/docker/overlay2/da2d9177943f0ca2e9e9dcad8996127c5709059d7d62db7004314bc25c5ff209/merged",
"UpperDir": "/var/lib/docker/overlay2/da2d9177943f0ca2e9e9dcad8996127c5709059d7d62db7004314bc25c5ff209/diff",
"WorkDir": "/var/lib/docker/overlay2/da2d9177943f0ca2e9e9dcad8996127c5709059d7d62db7004314bc25c5ff209/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:a483da8ab3e941547542718cacd3258c6c705a63e94183c837c9bc44eb608999",
"sha256:c8f253aef5606f6716778771171c3fdf6aa135b76a5fa8bf66ba45c12c15b540",
"sha256:c0f190a96f650aa950e04c09147b4e9f8cba8850953199130dc41f706b73ab33",
"sha256:bd3270e053389972718e24e143fb89525b6521ad1faa0e8daef303722adff108",
"sha256:a70159782f8ef814ebdb9a8bd4fdcb10d7a4458b098017bdbd568b32a86168fe",
"sha256:3681bd10229f7bcff1ea9eca0a19a7402ceedc8ecc0987f5b051881f7fcf67d1",
"sha256:8f3b31ba7d289ba387b5eeb62243e8d0204e3b4cb088e70aaa5c7e558419c1b1",
"sha256:2f02d155eb9007f848fd8454a0c3b8bd36bea7d2e27e6af1550151094d1c9be7",
"sha256:04680210b5357551ebf7920970c928ce8065fb80598609fcd0880cbcce2497fb"
]
},
"Metadata": {
"LastTagTime": "2025-04-01T23:10:17.453695219+08:00"
}
}