镜像构建历史
# 2025-01-09 07:18:43 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2025-01-09 07:18:43 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2025-01-09 07:18:43 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2025-01-09 07:18:43 92.97KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2025-01-09 07:18:43 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2025-01-09 07:18:43 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2025-01-09 07:18:42 648.24MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2025-01-09 07:17:44 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-09 07:17:44 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-09 07:17:44 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2025-01-09 07:17:43 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-09 07:17:43 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 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
# 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-02 08:00:00 74.82MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1733097600'
镜像信息
{
"Id": "sha256:8518d1ef94aabca8d57ee2d62709deb228e3f381ba94b763bdb4e1754551593c",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.124.2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.124.2"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:a134652b47278edfdac3187d61558e78679be39c810536193a41e9e0d894c5f4",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:ec18699ceabee629ac3f9650872adc35f94cc433981bac75e6082bb27c4ae0a9"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-08T23:18:43.074732718Z",
"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-08T23:28:53.888Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "8d836ae04f9119d964326bc8e4bc9d3a24b5c084",
"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.124.2"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 778716579,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/721e498321ae8dd65ecc7e4e36dc7387d3fc259905df1bae4ed06e929b87e0e6/diff:/var/lib/docker/overlay2/5498a413b55395e85d70fb7b5a5597b9e62f195545e9f593dfb03ced72aa3ae3/diff:/var/lib/docker/overlay2/5fb34947174ae8ea99c6aa75d06d63657cccb675f584499b57f57ac3de7ec457/diff:/var/lib/docker/overlay2/5a9466a1444edf70642a691486572ff8553282e760fdf306ac90dfa0d4760abb/diff:/var/lib/docker/overlay2/80a3d4bda26500dbe1879f1700913bb4c3e5723223efb589d2c1ca703a5dd9dc/diff:/var/lib/docker/overlay2/787b56894d07ebc8161cec023dda58901dec91d465c13bb37a0608f77774c3c2/diff:/var/lib/docker/overlay2/9edfd9973a099e0464a2a34622b8729663ef16769a76089ca15bbe5c917faf58/diff:/var/lib/docker/overlay2/121e00db53a014e4551f9ca3ab14226159e4a25e0ccab182a4f6608add2233c0/diff:/var/lib/docker/overlay2/62b3799a84f7efd7158f6506f189719c8fe741c6051f7384278ff80933e5a071/diff:/var/lib/docker/overlay2/404e59c4c9adc52232d40ea19adf6c8d76b2fc9392dc54e49d9840bbd9ffc580/diff",
"MergedDir": "/var/lib/docker/overlay2/3f86ea56134df715674843b77f24375c443ab64bd79b8550e6a41c1fc336b328/merged",
"UpperDir": "/var/lib/docker/overlay2/3f86ea56134df715674843b77f24375c443ab64bd79b8550e6a41c1fc336b328/diff",
"WorkDir": "/var/lib/docker/overlay2/3f86ea56134df715674843b77f24375c443ab64bd79b8550e6a41c1fc336b328/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c0f1022b22a9b36851b358f44e5475e39d166e71a8073cf53c894a299239b1c5",
"sha256:42ca3c4e0243a05de0d6b5acbb61b2e902d621cf9996326d5acbd5e4855bfce1",
"sha256:3a9ca0e18fd5adba3d02c3ee14e4aac0f595924f3bc5718ceae7862c518d9be3",
"sha256:ad05cdcb59cdb4a37f0e44dcc86834aabd4fe795f64c6f6c1108c69fabb625af",
"sha256:3fe58cae51b1ee52e58d6c4c83b439313858ab1c6b97fad4820dc00acc85aaf7",
"sha256:e6558a668335fea5d202182be2d60593ff34b11dbd2585659e8d0f9cd6e84081",
"sha256:3006bffd14d37ac0f45301c005ee7c6dc7242c0dd7bfdb699f1f568256cf887e",
"sha256:14b737e14a208992f991f5efb274bb0f137e00b1e2ed63c396fa1073909af2c0",
"sha256:3fb6390599df79aaf64e96e2fadabd46b9bfe4247d53006c6ae0f46fbcfbfa39",
"sha256:5060bab5ff0800a3b21fe6ae0c793ee5d29a620d81093d655304d8d7a86a8224",
"sha256:c21470f92bd87840a962f7dfabfd4a67461bb3762bd60c0be39bbd3eec20d7c2"
]
},
"Metadata": {
"LastTagTime": "2025-01-12T19:50:17.414518602+08:00"
}
}