镜像构建历史
# 2025-01-26 22:29:32 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2025-01-26 22:29:32 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2025-01-26 22:29:32 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2025-01-26 22:29:32 96.73KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2025-01-26 22:29:32 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2025-01-26 22:29:32 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2025-01-26 22:29:32 648.72MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2025-01-26 22:28:36 3.58KB 执行命令并创建新的镜像层
RUN |1 DEVICE=cpu /bin/sh -c echo "hard core 0" >> /etc/security/limits.conf && echo "fs.suid_dumpable 0" >> /etc/sysctl.conf && echo 'ulimit -S -c 0 > /dev/null 2>&1' >> /etc/profile # buildkit
# 2025-01-26 22:28:36 0.00B 设置环境变量 TRANSFORMERS_CACHE PYTHONDONTWRITEBYTECODE PYTHONUNBUFFERED PATH PYTHONPATH DEVICE
ENV TRANSFORMERS_CACHE=/cache PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PATH=/opt/venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PYTHONPATH=/usr/src DEVICE=cpu
# 2025-01-26 22:28:36 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2025-01-26 22:28:35 1.27MB 执行命令并创建新的镜像层
RUN |1 DEVICE=cpu /bin/sh -c apt-get update && apt-get install -y --no-install-recommends tini $(if ! [ "$DEVICE" = "openvino" ]; then echo "libmimalloc2.0"; fi) && apt-get autoremove -yqq && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
# 2025-01-26 22:28:35 0.00B 定义构建参数
ARG DEVICE=cpu
# 2024-12-04 06:49:59 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-12-04 06:49:59 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-04 06:49:59 45.80MB 执行命令并创建新的镜像层
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-04 06:49:59 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3
# 2024-12-04 06:49:59 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.11
# 2024-12-04 06:49:59 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-12-04 06:49:59 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-04 06:49:59 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-12-04 06:49:59 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-04 06:49:59 74.77MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
镜像信息
{
"Id": "sha256:77b6acc9e2d38267e4238f219eed20079fd8d4203f8b2f9b37e6f5f882c2bb23",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.125.3",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.125.3"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:7914728ed016cf6c546c7541890fee3a1e25728e6f3abc9d61a999060a41bb2d",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:4a8060beb05dcfa77a38b09941acbaeed9ebdbccfefd528be4db17b2cc00f247"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-26T14:29:32.701603663Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/opt/venv/bin:/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.11",
"PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3",
"TRANSFORMERS_CACHE=/cache",
"PYTHONDONTWRITEBYTECODE=1",
"PYTHONUNBUFFERED=1",
"PYTHONPATH=/usr/src",
"DEVICE=cpu"
],
"Cmd": [
"./start.sh"
],
"Healthcheck": {
"Test": [
"CMD-SHELL",
"python3 healthcheck.py"
]
},
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/usr/src/app",
"Entrypoint": [
"tini",
"--"
],
"OnBuild": null,
"Labels": {
"org.opencontainers.image.created": "2025-01-26T14:28:21.261Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "72a55c13b60036adccd9ea108276ca9a4bc37ade",
"org.opencontainers.image.source": "https://github.com/immich-app/immich",
"org.opencontainers.image.title": "immich",
"org.opencontainers.image.url": "https://github.com/immich-app/immich",
"org.opencontainers.image.version": "v1.125.3"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779911326,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/dece6925e4bc875a94a14b22af75d794423e7b65d3597a400de768d713a794f5/diff:/var/lib/docker/overlay2/33ad2b39dde12cc500e2abda150d7d4fbb00d510b5637a1d0657487f5e7fb7ec/diff:/var/lib/docker/overlay2/621fc505ac8e69696eb43ab77ee2601e9e9f9fbf7c45e76e133c2fef39c00180/diff:/var/lib/docker/overlay2/f9e88d53a83af76df48714d18594922b3d4e35c99e28ce666fea10a710d290ae/diff:/var/lib/docker/overlay2/4f4d034c176ac1096bc5cba35f27f56d590009807cff101d1bf15ed4b7a639b5/diff:/var/lib/docker/overlay2/c2c97fa0703263192538225ceeb9098ae74fe56c692e6430c4c5eb5e2f81073c/diff:/var/lib/docker/overlay2/e2498eef6807ffcf9a20bcfbab4433cba30dabeedbe48c8985c3c10e7ce39dbc/diff:/var/lib/docker/overlay2/e736c3c5e8999e5ca6fd43fb29fad9d9db2fcdfe1ca0583dd513b83a2622c4c5/diff:/var/lib/docker/overlay2/175834f8e2f92b496202659884662c9cba6b8e631c93bb5f739c7de204d40710/diff:/var/lib/docker/overlay2/84c5fbb64568c2307107468523b21101c6d2cc2d93b7bd46134875b7faeff5d5/diff",
"MergedDir": "/var/lib/docker/overlay2/d27c36dfdac88bfc9004ca348d0bf0b0b8da248c2bae5b6f848a17bc4cdc83a9/merged",
"UpperDir": "/var/lib/docker/overlay2/d27c36dfdac88bfc9004ca348d0bf0b0b8da248c2bae5b6f848a17bc4cdc83a9/diff",
"WorkDir": "/var/lib/docker/overlay2/d27c36dfdac88bfc9004ca348d0bf0b0b8da248c2bae5b6f848a17bc4cdc83a9/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
"sha256:3eed43df44267f2c4a51eafa1273da2f09bff18f94e9b8bf2788f583db4c7457",
"sha256:494e604b4a140b512112cba8d2f0320381eaf9dd6e1cddef870deb84b505577d",
"sha256:a4bcffac016a4692995288d8d71ab2a05be7c2359c2d871cd824fe496e6f417a",
"sha256:6cfb04fe3c04cbe16c8b35ffaaf51a666c98cac4f9618e71dac0245e3302fcdd",
"sha256:3d678c720005a35b914d928aba9e8c16f4f21bb1e103329ef145ac62d525d110",
"sha256:916fa97bddf13af46373d2d6c9164d8f20692f18419e3aaf4ef161166ad754b9",
"sha256:1db31f19a2f7aa9a15b4750abaea72de32ae501ac71e8b4ead81cacb28dc1041",
"sha256:3de215adbf282697ea2a84756d6a812ae781724a2e9c0fadd888987093817ff7",
"sha256:b2fd3e6ca1b2567dccefca7e1d531e3aa89692108f5d530307f318b6e91be7b9",
"sha256:6868d167e7f50fd4d150fcefc9821f314a9d5f8e28d56ac82297c3e2b5195c79"
]
},
"Metadata": {
"LastTagTime": "2025-01-26T23:57:09.283083741+08:00"
}
}