镜像构建历史
# 2025-03-18 00:56:58 0.00B 设置默认要执行的命令
CMD ["python" "main.py"]
# 2025-03-18 00:56:58 0.00B 声明容器运行时监听的端口
EXPOSE map[6186/tcp:{}]
# 2025-03-18 00:56:58 0.00B 声明容器运行时监听的端口
EXPOSE map[6185/tcp:{}]
# 2025-03-18 00:56:58 63.95KB 执行命令并创建新的镜像层
RUN /bin/sh -c python -m pip install socksio wechatpy cryptography --no-cache-dir # buildkit
# 2025-03-18 00:56:56 149.64MB 执行命令并创建新的镜像层
RUN /bin/sh -c python -m pip install -r requirements.txt --no-cache-dir # buildkit
# 2025-03-18 00:56:32 387.59MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gcc build-essential python3-dev libffi-dev libssl-dev && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
# 2025-03-18 00:55:47 825.04KB 复制新文件或目录到容器中
COPY . /AstrBot/ # buildkit
# 2025-03-18 00:55:47 0.00B 设置工作目录为/AstrBot
WORKDIR /AstrBot
# 2024-12-05 00:49:14 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-12-05 00:49:14 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
# 2024-12-05 00:49:14 43.18MB 执行命令并创建新的镜像层
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 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 -; 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-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:-}" ; 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 -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/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' wheel ; pip3 --version # buildkit
# 2024-12-05 00:49:14 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1
# 2024-12-05 00:49:14 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.10.16
# 2024-12-05 00:49:14 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-12-05 00:49:14 9.24MB 执行命令并创建新的镜像层
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-12-05 00:49:14 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-12-05 00:49:14 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-05 00:49:14 74.78MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1740355200'
镜像信息
{
"Id": "sha256:9b7d4dbc6c067134b5fd806a5c6a3ef212a9009418bca65258cade589fe4a81d",
"RepoTags": [
"soulter/astrbot:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/soulter/astrbot:latest"
],
"RepoDigests": [
"soulter/astrbot@sha256:61e9d2c39eb4a70a1b079642767c27ceab008a90295f65741824d037051b3cae",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/soulter/astrbot@sha256:d21f5ed98a31d849ccbd395357e4b9c5f46ef8a7f2f3248871c7c2277dd2c558"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-17T16:56:58.065213003Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"6185/tcp": {},
"6186/tcp": {}
},
"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.16",
"PYTHON_SHA256=bfb249609990220491a1b92850a07135ed0831e41738cf681d63cf01b2a8fbd1"
],
"Cmd": [
"python",
"main.py"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/AstrBot",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 665324777,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/63577e593bb9257426018c7a673460c5c91b354977f2f17900cb742782e25784/diff:/var/lib/docker/overlay2/dc32f19abd6cd6c0062c39d2bcd3e02399c9a74c83a232e4cb00e0c178956491/diff:/var/lib/docker/overlay2/aa78e2d3cd80b11840b6de0cf986074bd7c0abd2b6cdaea94336e226bf35d41b/diff:/var/lib/docker/overlay2/ba066247437735b2979f23afde5b0e2622fe41120267ac762fc8a0294c730967/diff:/var/lib/docker/overlay2/f758b8624e13a93d72d58172d5e5c67d054d44a11c5fa912b6e970994da26b3c/diff:/var/lib/docker/overlay2/9d85358d75bd721bbf26c249477af187661d82131cc5b2757019f200cc4a455e/diff:/var/lib/docker/overlay2/2e6b0523675c63cfb7544fd142581375154d24716779e660aedaa326d24d1e8b/diff:/var/lib/docker/overlay2/65d6f3e5c58a32e6d4f3c9bc396e54e8a2035020c67a8dd55e5875be0d134780/diff",
"MergedDir": "/var/lib/docker/overlay2/0ef30254b60bb4f7a294ec0d74dce015dbf10badd2546fe91e37b224371d5756/merged",
"UpperDir": "/var/lib/docker/overlay2/0ef30254b60bb4f7a294ec0d74dce015dbf10badd2546fe91e37b224371d5756/diff",
"WorkDir": "/var/lib/docker/overlay2/0ef30254b60bb4f7a294ec0d74dce015dbf10badd2546fe91e37b224371d5756/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:5f1ee22ffb5e68686db3dcb6584eb1c73b5570615b0f14fabb070b96117e351d",
"sha256:d45f9c08a566916cd6d5a6415efc44227afac5beb9202d173cca092954b154c2",
"sha256:79a0c95499d6d392e5b6da87ca9cd6cd39dec2b109ec97486400ee2ec23f61c2",
"sha256:2bada92b40c04ffefeccea6cd5e7effb41e1e0dcde30b5a85984051001bf3a0c",
"sha256:dd4557ecbb8a500ac9283552ff4084223a6e65699a41ada01477439b8a8c82bf",
"sha256:6e7e1ee1a02ccfa999bbc50ab393d63e6bc662f388951d34dec1ae0cc0f78436",
"sha256:f7189d5f24334111a8e1b21cb5012f06c1e0ffba8a990a9eb8c4ceec1503be3b",
"sha256:7cf53096102fa1666fc570f5ce8837ccd9e574f42c9d180a50d3197ffaa035c3",
"sha256:ccf93d765b9c38e6f3b0394d12d39dc54879e7f031c828af1b813e3ef7fa5542"
]
},
"Metadata": {
"LastTagTime": "2025-03-18T13:19:59.432484186+08:00"
}
}