镜像构建历史
# 2025-03-13 13:06:43 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/app/entrypoint.sh"]
# 2025-03-13 13:06:43 1.56KB 执行命令并创建新的镜像层
RUN /bin/sh -c chmod +x /app/entrypoint.sh # buildkit
# 2025-03-13 13:06:43 1.74KB 复制新文件或目录到容器中
COPY pyproject.toml pyproject.toml # buildkit
# 2025-03-13 13:06:43 1.56KB 复制新文件或目录到容器中
COPY entrypoint.sh /app/entrypoint.sh # buildkit
# 2025-03-13 13:06:43 2.74MB 复制新文件或目录到容器中
COPY src src # buildkit
# 2025-03-13 13:06:42 279.01MB 复制新文件或目录到容器中
COPY /app/.venv /app/.venv # buildkit
# 2025-03-13 13:06:42 0.00B 设置环境变量 VIRTUAL_ENV PATH
ENV VIRTUAL_ENV=/app/.venv PATH=/app/.venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-03-13 13:05:32 20.03MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update && apt install -y netcat-traditional # buildkit
# 2023-10-22 02:46:15 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2023-10-22 02:46:15 10.46MB 执行命令并创建新的镜像层
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
# 2023-10-22 02:46:15 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6
# 2023-10-22 02:46:15 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py
# 2023-10-22 02:46:15 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=23.2.1
# 2023-10-22 02:46:15 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
# 2023-10-22 02:46:15 34.40MB 执行命令并创建新的镜像层
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
# 2023-10-22 02:46:15 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.12.0
# 2023-10-22 02:46:15 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2023-10-22 02:46:15 8.48MB 执行命令并创建新的镜像层
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
# 2023-10-22 02:46:15 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2023-10-22 02:46:15 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2023-10-22 02:46:15 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2023-10-22 02:46:15 74.82MB
/bin/sh -c #(nop) ADD file:d261a6f6921593f1e0b3f472ab1b1822e2c6deb0b369200f0b3370556bfad017 in /
镜像信息
{
"Id": "sha256:cce67bb651e9d522b5b86f469206384fe7f8e151b31b77ae7759cb79486e286b",
"RepoTags": [
"ghcr.io/canner/wren-ai-service:0.16.2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/canner/wren-ai-service:0.16.2"
],
"RepoDigests": [
"ghcr.io/canner/wren-ai-service@sha256:f87ccc4a0a564fd112e40b7121750e6f1b89ffaf96ff0c782fe713612a808e21",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/canner/wren-ai-service@sha256:a23f0fb68bb7aaade3682e00c0fd7d0edc8f4a8f617c71f1f32a7883e03b3416"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-13T05:06:43.101053457Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/app/.venv/bin:/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.0",
"PYTHON_PIP_VERSION=23.2.1",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py",
"PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6",
"VIRTUAL_ENV=/app/.venv"
],
"Cmd": null,
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/app/entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"ghcr.io/canner/wren-ai-service": ""
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 429947075,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/92ddf2569a5792f24c84616e3421b42c5d79821e8875e1b6d13c38732835c48e/diff:/var/lib/docker/overlay2/2541127674fb146b0a35d765cd0f3849e0689d35a72a3fa63af04d1fafb33d3a/diff:/var/lib/docker/overlay2/d655c10d7e97e22ae0e03a5bdd6da5415a97017d5c41de93d17b77af16489dcd/diff:/var/lib/docker/overlay2/60ca41adcd39732a695819481b2092fe71f6964a79d44d07a74724b12ebcb690/diff:/var/lib/docker/overlay2/bef184a273eae680448ff2f108c0d893426c17478bc15b371ac43dea3cae7036/diff:/var/lib/docker/overlay2/2b8f74d98521c0a81f4d788d27637af78fcd212355bc36bc39edcdab2c63754a/diff:/var/lib/docker/overlay2/ca7a4f74cf04cd59781854a5714b6e9f8f7d7b016cf4fb4bdbc42aa32f7aec43/diff:/var/lib/docker/overlay2/77fd6b6c8c1e38dc2539660923827625a2ce465d79b5d4d33a1e05a4deb078ad/diff:/var/lib/docker/overlay2/e897dfff508ac88ad7bad956b3f60ad4b68bd2177c0732be92baa25291eab9e7/diff:/var/lib/docker/overlay2/02989b4d02bb9160e5c1f5c60f82241807bcdac66d1304f4fdc20b6502ec8a32/diff",
"MergedDir": "/var/lib/docker/overlay2/bbceb90b2bd9ba0da373c336c590d36ea3cc6108ba538e44a3c323044e13b6ca/merged",
"UpperDir": "/var/lib/docker/overlay2/bbceb90b2bd9ba0da373c336c590d36ea3cc6108ba538e44a3c323044e13b6ca/diff",
"WorkDir": "/var/lib/docker/overlay2/bbceb90b2bd9ba0da373c336c590d36ea3cc6108ba538e44a3c323044e13b6ca/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:92770f546e065c4942829b1f0d7d1f02c2eb1e6acf0d1bc08ef0bf6be4972839",
"sha256:ed123c9f1a56d55ad5533b08040e6518749b1ad01402871e64c0190e6b3334fb",
"sha256:0f2188789fda590dee0361113177bc5904e0add275282f84242849fd44b4e2a5",
"sha256:daa0e056b575c553e06c90bb525bdc5bdc2d091f281d68745cd3541bfcc1f44b",
"sha256:8d69db8508c37ba8666c9d1cfc553619ee9355e140fed3a16887df6d39c867bb",
"sha256:2710182b15ca0e98fcb9a3dfd4765da68d0bce5fe85b4eefeff85c885ca5b804",
"sha256:2cab4877b8b2f971807acaa39a99a40ca30139dd5ec8da09ea736612455d0df1",
"sha256:4d401af46f3f794c45cdf381d7c149109a3a5e0a777327643ffeb83ae865bc02",
"sha256:d201ebd7b8e2bf383faf2a03497fe26a341c94011f179ebeebf104d493afdbdd",
"sha256:6a5091c6cc1ae5e69636df4cd2dfddccac6b0f6b094a491d25b3268a4c865783",
"sha256:7fd1813791379e7c5a6c94350a841b37d68eb9efe4b64d209028f075cc6627e9"
]
},
"Metadata": {
"LastTagTime": "2025-03-17T20:48:22.284508044+08:00"
}
}