镜像构建历史
# 2025-01-28 04:06:52 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2025-01-28 04:06:52 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2025-01-28 04:06:52 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2025-01-28 04:06:52 96.73KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2025-01-28 04:06:52 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2025-01-28 04:06:52 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2025-01-28 04:06:52 648.72MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2025-01-28 04:05:53 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 04:05:53 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 04:05:53 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2025-01-28 04:05:52 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 04:05:52 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:b5f61d9b7af1d0277e00815af5efd9c0013715fcf792d03e150fb6e7d2ebd773",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.125.5",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.125.5"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:698b9b2d61eee42578cf268dc1490a136554fb186a448b51430f069431d5e754",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:2062c3cfc64aefb639ba746cf7d00548c4e8c346fd55d6d398aefaf8415fa447"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-27T20:06:52.678293887Z",
"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-27T20:42:54.543Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "64d926581ffb933c45f6220961c56bb592205521",
"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.5"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779911326,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/7216e0427e53e45802e9ee8b59b24b58343d6c1465d8a598280abecb551a41f1/diff:/var/lib/docker/overlay2/28ccf41c06d71e95403e6c836e11ceab1a024536473f8e8584009baa10966bb1/diff:/var/lib/docker/overlay2/d92aef89176861cc9243f39cdfae0e3176c72245ede006150897878a0bf30424/diff:/var/lib/docker/overlay2/ae841edd3f537f8a0eeaf0d93992ac8b0a7cd0dd1a96545aceb5c1c29f384f79/diff:/var/lib/docker/overlay2/f12cddedf5b6489b04aedb786489dc5ac5c85d67076d27d33a2e34b8060f8258/diff:/var/lib/docker/overlay2/da53c23e4a024c2d1fb3f12db8c9c3a2629a25ec0470118acc1b98d4973b3a12/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/b8e4829586ef4fcdf106d1a82b1199532c3efa021767474cce18f0e5089db183/merged",
"UpperDir": "/var/lib/docker/overlay2/b8e4829586ef4fcdf106d1a82b1199532c3efa021767474cce18f0e5089db183/diff",
"WorkDir": "/var/lib/docker/overlay2/b8e4829586ef4fcdf106d1a82b1199532c3efa021767474cce18f0e5089db183/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
"sha256:3eed43df44267f2c4a51eafa1273da2f09bff18f94e9b8bf2788f583db4c7457",
"sha256:494e604b4a140b512112cba8d2f0320381eaf9dd6e1cddef870deb84b505577d",
"sha256:a4bcffac016a4692995288d8d71ab2a05be7c2359c2d871cd824fe496e6f417a",
"sha256:bf521bae75e6ebdd9bfd7bdc0103b674b21cd1bf957e5750288f16f0e6bf9fe8",
"sha256:e288d2a044e0071d3508f5ae4868c1ee48a67cccda27c5ffe7ba628ede4c978d",
"sha256:8267df82ec1fdbf5527da9217331f45035fddea38d9a1c3ac725721c918e10f1",
"sha256:0fb2b94748075e3e5b801a4106c5e3091690912dbade6205118b90a51b934019",
"sha256:69b6a79659bf7607a1af692532c665147823dfc7bddeb04f1117a70dc3158268",
"sha256:117cb4bdb87e2cbb73184c03ac426af95367e30f6f76a8f37c4c570fe0778826",
"sha256:99f7f57570d8561c973d2714e1be062ba80b8412f2bb7e6746d6035c4b7cce8d"
]
},
"Metadata": {
"LastTagTime": "2025-01-28T10:44:10.694849469+08:00"
}
}