镜像构建历史
# 2024-06-11 18:51:51 0.00B 设置默认要执行的命令
CMD ["python" "app.py"]
# 2024-06-11 18:51:51 267.83MB 执行命令并创建新的镜像层
RUN |2 DELETE_NAMES=*int8.onnx BUILD_INT8= /bin/sh -c pip install -r requirements.txt # buildkit
# 2024-06-11 18:51:40 1.10MB 复制新文件或目录到容器中
COPY . . # buildkit
# 2024-06-11 18:51:40 0.00B 设置工作目录为/app
WORKDIR /app
# 2024-06-11 18:51:40 16.54MB 执行命令并创建新的镜像层
RUN |2 DELETE_NAMES=*int8.onnx BUILD_INT8= /bin/sh -c pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flask # buildkit
# 2024-06-11 18:51:28 0.00B 声明容器运行时监听的端口
EXPOSE map[5001/tcp:{}]
# 2024-06-11 18:51:28 269.97MB 执行命令并创建新的镜像层
RUN |2 DELETE_NAMES=*int8.onnx BUILD_INT8= /bin/sh -c curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-zipformer-multi-zh-hans-2023-9-2.tar.bz2 && ls -all && tar xvf sherpa-onnx-zipformer-multi-zh-hans-2023-9-2.tar.bz2 --strip-components 1 -C /models && rm sherpa-onnx-zipformer-multi-zh-hans-2023-9-2.tar.bz2 && find /models -name ${DELETE_NAMES} -exec rm {} \; && ls -all /models # buildkit
# 2024-06-11 18:51:06 18.10MB 执行命令并创建新的镜像层
RUN |2 DELETE_NAMES=*int8.onnx BUILD_INT8= /bin/sh -c apt-get update && apt-get install -y --no-install-recommends bzip2 # buildkit
# 2024-06-11 18:51:04 0.00B 执行命令并创建新的镜像层
RUN |2 DELETE_NAMES=*int8.onnx BUILD_INT8= /bin/sh -c mkdir -p /models && chmod -R 777 /models # buildkit
# 2024-06-11 18:51:04 386.69MB 执行命令并创建新的镜像层
RUN |2 DELETE_NAMES=*int8.onnx BUILD_INT8= /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ffmpeg tar curl bzip2 && rm -rf /var/lib/apt/lists/* # buildkit
# 2024-06-11 18:51:04 0.00B 设置环境变量 USE_INT8
ENV USE_INT8=2
# 2024-06-11 18:51:04 0.00B 设置环境变量 USE_INT8
ENV USE_INT8=
# 2024-06-11 18:51:04 0.00B 定义构建参数
ARG BUILD_INT8
# 2024-06-11 18:51:04 0.00B 定义构建参数
ARG DELETE_NAMES=*int8.onnx
# 2024-04-03 23:49:18 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-04-03 23:49:18 12.42MB 执行命令并创建新的镜像层
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-04-03 23:49:18 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=dfe9fd5c28dc98b5ac17979a953ea550cec37ae1b47a5116007395bfacff2ab9
# 2024-04-03 23:49:18 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/dbf0c85f76fb6e1ab42aa672ffca6f0a675d9ee4/public/get-pip.py
# 2024-04-03 23:49:18 0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
# 2024-04-03 23:49:18 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.0
# 2024-04-03 23:49:18 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-04-03 23:49:18 32.00MB 执行命令并创建新的镜像层
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-04-03 23:49:18 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.9
# 2024-04-03 23:49:18 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-04-03 23:49:18 3.12MB 执行命令并创建新的镜像层
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-04-03 23:49:18 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-04-03 23:49:18 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-05-14 09:28:27 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-05-14 09:28:26 80.66MB
/bin/sh -c #(nop) ADD file:9b38b383dd93169a663eed88edf3f2285b837257ead69dc40ab5ed1fb3f52c35 in /
镜像信息
{
"Id": "sha256:45dc08e2e90a5dc09039e0862f226d20571fd2c541abb5274edf6239ce9a60e4",
"RepoTags": [
"yaming116/sherpa-onnx-asr:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/yaming116/sherpa-onnx-asr:latest"
],
"RepoDigests": [
"yaming116/sherpa-onnx-asr@sha256:5f416c930b7952c0e29f031ea9b29e82ac76a398464a801f853a680f012c4454",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/yaming116/sherpa-onnx-asr@sha256:37084a133df1a6fe7e90d731aa112742e85cdb7ae928be8bed20ce3b07a209e3"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-06-11T10:51:51.305066215Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"5001/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.11.9",
"PYTHON_PIP_VERSION=24.0",
"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",
"USE_INT8=2"
],
"Cmd": [
"python",
"app.py"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/app",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.opencontainers.image.source": "https://github.com/yaming116/sherpa-onnx-asr"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 1088421206,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/bbb4bbf8050cc6b6008bba14efb5444fe8605847f5cd853b8d822281eb056560/diff:/var/lib/docker/overlay2/687e160e462d7afdbd44e3430cc5e9be744fe95f692bf1ce7ca3e5df6681297e/diff:/var/lib/docker/overlay2/8f88fc0c9ca3a41578357af9aec9a0b9cc836f78a92a892e3da4068b51fa2cc8/diff:/var/lib/docker/overlay2/dcc88c646262bd26bc165dcc799c96016d99e0175a3acc0f11f60b874cc0ed49/diff:/var/lib/docker/overlay2/b30a58da5ab8da2d1a0d81e79171b955a3f861dbfeb2710de0b297d28fd208fc/diff:/var/lib/docker/overlay2/a6be7c5cb4071167f8bc17c857289b85200b162d316230ddd1ea09ed2f38f23f/diff:/var/lib/docker/overlay2/27f4e796eb9ceef7e8c21d49c6b4450cce74f3d087771f94c2a9e88a696bb8c8/diff:/var/lib/docker/overlay2/deed4cf32bc01cd4116ecc0df39c0db9712be2422eb5efaf936cabeeef3ed126/diff:/var/lib/docker/overlay2/b25b18ec5d7c25be6e9333b42330939c7d1c03ed1bb69839c5890b577bc2ae0a/diff:/var/lib/docker/overlay2/2c78e1053e8c8d69a484ee56d23ce818db3e88a4c929da45e595a0366080c6f4/diff:/var/lib/docker/overlay2/d8924d20bf1670a8d44e0ec28ecfbe6e7c29c932217bd8f7e5ddad64ab749732/diff:/var/lib/docker/overlay2/f830877afcf50b0831e1951d07f5fef05bba7a839f3864041da3f530970a7ef8/diff",
"MergedDir": "/var/lib/docker/overlay2/e51ecf25b8fc0682ea227bf5d4db6d7d2a0773c6a57842290a83f419dd86ff3b/merged",
"UpperDir": "/var/lib/docker/overlay2/e51ecf25b8fc0682ea227bf5d4db6d7d2a0773c6a57842290a83f419dd86ff3b/diff",
"WorkDir": "/var/lib/docker/overlay2/e51ecf25b8fc0682ea227bf5d4db6d7d2a0773c6a57842290a83f419dd86ff3b/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:123eef91533f6745362321baeef5b3fcbb846bbbf250f5b10653d0fab061b90f",
"sha256:1c8e0f1c7dde6ae3cce8e45d08fb367431b2cd390970699a89eb45e9ccf0d069",
"sha256:32ad5cf72f72c49c0fcc4b2198e002fef79163ca2906a1194c9dd93e737db4bf",
"sha256:1c31eb42737831b835216f5acd8d9960f263b1155f51e48cbf652e7231322429",
"sha256:f12db72d27f6e9537195cf2216758d147639b9d5de9ea375995b2efcafb55a1a",
"sha256:88b55804041ad0de0e9079be6b5e1d611597564a54fa4837cf46f13c21e962d9",
"sha256:6efc1a8fa5f414358712e7ca860f91547831ce7a597e01437a0689de54db50c0",
"sha256:8bd55ceed9d3ad4c7a243641dce8453b410937b22005e108784922cc167021e0",
"sha256:1a73051d6c1b1fc36ef9eb41d403d499ae7f7ef6a6b4608a76814542562feb43",
"sha256:ad9f9660a67f03cdd248c463ff7333f60f5655b88ed8d29050df18b97cf70f41",
"sha256:8aa1711916a9a5f4c0d72953f1cfa2bbd7cd2f72b0f23e3f2ef3d31953a94601",
"sha256:682f08b0aa69f564ed205577be2aa66b244495b10f127674eb1e3a5a63fb3f55",
"sha256:3920aca26b131d68884efd79b382165b1286cbc6acee8d2fe797015ae8dec76d"
]
},
"Metadata": {
"LastTagTime": "2025-08-28T19:36:09.033214892+08:00"
}
}