镜像构建历史
# 2025-01-28 11:00:39 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2025-01-28 11:00:39 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2025-01-28 11:00:39 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2025-01-28 11:00:39 96.73KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2025-01-28 11:00:39 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2025-01-28 11:00:39 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2025-01-28 11:00:39 648.72MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2025-01-28 10:59:41 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-28 10:59:41 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-28 10:59:41 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2025-01-28 10:59:40 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-28 10:59:40 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:ab2b08b2c7c917f23521a9a702788652638c48f8fcf44013a96f74b455c27ca3",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.125.6",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.125.6"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:0ca72dae460b7fd2dbd0ca146fdddfd26b1c1af783f37659c2f1bdd546fdf1e4",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:ba42aee668ae4c89728321772d8857d1a392d9c79311a39ac8668d0d815f4976"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-28T03:00:39.638706718Z",
"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-28T03:37:31.575Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "f44669447fc2e84202b4eaeefa642b0c81de10a2",
"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.6"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779911326,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f323e83f7d9a417cd215b6c9fb90b28bdfdef00932848ef6216c3ca7706b7cec/diff:/var/lib/docker/overlay2/4f18fff75a09ce0e3b0ab7b4d7cd01e493b51ce61b77567ddb3c011bba6072e9/diff:/var/lib/docker/overlay2/8befb12acf2b2242f69cee019faa7ff2a258f3365b693db3256e460c17b1f1b0/diff:/var/lib/docker/overlay2/95e9428959d36a3429c5a23c452e9ceb7b6567f5828bbc8f276e91968e73fa7a/diff:/var/lib/docker/overlay2/96d9bd1fc700037eeafec15138b85bd60bb357c440c413e8d62bd3c2454e6393/diff:/var/lib/docker/overlay2/f11a06bbcdcdf2dc270c493534132809641b6d2936b698abf179d37447f3d8cc/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/feec77ac2da769c5f5975b8b5378a8a5f53de95b6f8356c8f13d24183f5cc00a/merged",
"UpperDir": "/var/lib/docker/overlay2/feec77ac2da769c5f5975b8b5378a8a5f53de95b6f8356c8f13d24183f5cc00a/diff",
"WorkDir": "/var/lib/docker/overlay2/feec77ac2da769c5f5975b8b5378a8a5f53de95b6f8356c8f13d24183f5cc00a/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
"sha256:3eed43df44267f2c4a51eafa1273da2f09bff18f94e9b8bf2788f583db4c7457",
"sha256:494e604b4a140b512112cba8d2f0320381eaf9dd6e1cddef870deb84b505577d",
"sha256:a4bcffac016a4692995288d8d71ab2a05be7c2359c2d871cd824fe496e6f417a",
"sha256:9d82cb1b252d30c497b11309f7f54779e814479020395c9f328d2616e4105694",
"sha256:444f116171644ca13203ff4e0fcac4096c6dbe50e5e74c134f4114e299af5b85",
"sha256:e3f819ee794c5b02ef7fb39a6fe6f951ad477fc1f9dcc77ec9c2443f71db2765",
"sha256:03327253ca8bcb0b91af855056627e921e1b15a7d2e8b50bacac88c42471c658",
"sha256:a65d782f2788b06ae466f354bd1996ce1359c43b07f78926499b651643e3c1aa",
"sha256:e129d1505a7026e04dfcc90622cb30b205e6f8352efaedcb60a6ca15f48992bb",
"sha256:192ef197f287f52a2ca036974b429f1929ea559c0c066ec88c6eece09ce940c2"
]
},
"Metadata": {
"LastTagTime": "2025-01-28T13:41:40.750312851+08:00"
}
}