镜像构建历史
# 2025-03-02 18:11:01 0.00B 设置默认要执行的命令
CMD ["python" "main.py"]
# 2025-03-02 18:11:01 478.52MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt update && apt install gcc -y && python -m pip install -r requirements.txt && touch /.dockerenv # buildkit
# 2025-03-02 18:10:19 6.55MB 复制新文件或目录到容器中
COPY /app/web/dist ./web/dist # buildkit
# 2025-03-02 18:09:47 1.95MB 复制新文件或目录到容器中
COPY . . # buildkit
# 2025-03-02 18:09:47 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:251d4b74b4cc6d6fcd01b69b2cc753fcf992d78e0d559ddfb2644aeb57c731d6",
"RepoTags": [
"rockchin/langbot:v3.4.10",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rockchin/langbot:v3.4.10"
],
"RepoDigests": [
"rockchin/langbot@sha256:681ce447db5f59ef8b9c46e292987c89b67b35cafcff4db9f90352ca85004f59",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rockchin/langbot@sha256:5faacaf58f43f08df5a28b27bc9504b914ddc7048ecedfafb4e00238d5899dbd"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-02T10:11:01.728737599Z",
"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": 615124704,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/b2154dd582fb3b5353190a971a0d29df9442ee7e81ffede42a61c933d9484efa/diff:/var/lib/docker/overlay2/bb259166b3bc50ba7097ed970d59d9020e3cd3fe61a778ea503635200fceb48d/diff:/var/lib/docker/overlay2/f1dc4ba6caef6a3906fb3845ee49430e00b139ad3de3894391555fa6668c5cf6/diff:/var/lib/docker/overlay2/965f4aa1799b0fe253dbe671ecb3d2ddf91b035ce1fd3e3a93c8f6f2ffa8b9ba/diff:/var/lib/docker/overlay2/04c769c55a93b95d82b151f4796118222ac2010ae03ab964ae7436f28085a89d/diff:/var/lib/docker/overlay2/99f6baa6684f060c8e845488ab7af576cd189a9558bdf7ea6d1ba6409b32e408/diff:/var/lib/docker/overlay2/52b6b4c6ddcb12be01851a8ca04067660e92028b45bd97be5503c4df1ad542b2/diff:/var/lib/docker/overlay2/0696eea3e1371c246d0216ceed943cf0ca9d1a4f8e492ee80c9d35cdd843e226/diff",
"MergedDir": "/var/lib/docker/overlay2/3bf5bdd0c7ac349c68301754fdab2ecb58ee5ecc420ab5b36b6219fd36ee9241/merged",
"UpperDir": "/var/lib/docker/overlay2/3bf5bdd0c7ac349c68301754fdab2ecb58ee5ecc420ab5b36b6219fd36ee9241/diff",
"WorkDir": "/var/lib/docker/overlay2/3bf5bdd0c7ac349c68301754fdab2ecb58ee5ecc420ab5b36b6219fd36ee9241/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:a483da8ab3e941547542718cacd3258c6c705a63e94183c837c9bc44eb608999",
"sha256:c8f253aef5606f6716778771171c3fdf6aa135b76a5fa8bf66ba45c12c15b540",
"sha256:c0f190a96f650aa950e04c09147b4e9f8cba8850953199130dc41f706b73ab33",
"sha256:bd3270e053389972718e24e143fb89525b6521ad1faa0e8daef303722adff108",
"sha256:a70159782f8ef814ebdb9a8bd4fdcb10d7a4458b098017bdbd568b32a86168fe",
"sha256:bfea37de57e8cf4af36103f5555fd6789a0c132f5d66a2f6c9929c2e570fd021",
"sha256:b8cea1565edc3b8264219ff817699b4e57adcf014f6fe899c55303eee06c4b82",
"sha256:3b8fd6fbdf6b85f3cba85ea942276a1bd2e90c2022244a6cad368ad60793d084",
"sha256:7990ba339d1ad4c1aec16d22887c3b3d121aaf1ff8f42cd76cf7c8ed1014de0e"
]
},
"Metadata": {
"LastTagTime": "2025-03-02T20:26:37.037024968+08:00"
}
}