镜像构建历史
# 2025-01-30 01:44:48 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2025-01-30 01:44:48 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2025-01-30 01:44:48 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2025-01-30 01:44:48 96.73KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2025-01-30 01:44:48 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2025-01-30 01:44:48 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2025-01-30 01:44:48 648.72MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2025-01-30 01:43:49 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-30 01:43:48 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-30 01:43:48 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2025-01-30 01:43:48 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-30 01:43:48 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:1bf955721261643a31895a724ffcc54b5e1a14785d6812869945c790f4ef974d",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.125.7",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.125.7"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:5a7bac207c5be17bbe775fdca2fef7ec6635400180ae79cc7a41659cef2c05b0",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:1924d485a1f391d896bd3b21d06638d300042caba0ab9ac0c67da508aadd30aa"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-29T17:44:48.489032646Z",
"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-29T18:25:45.006Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "4fd8c1b3c1b4eaf5be7c01c2a87bb6e80117415e",
"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.7"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779911326,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e40adcc51b95f15d30dbfc3a6ba808c8e78943675172d37c3988d9d728fa02bc/diff:/var/lib/docker/overlay2/1de58b4f9031c09811541d9d31e369094c50bac87f7f282382a669c4ee54f5ef/diff:/var/lib/docker/overlay2/941a6635985729d11634525e1d1a7c5f0954df0a4b724965b499d0ad2e3f825b/diff:/var/lib/docker/overlay2/0cd94ed469d1074cc9dbfb70a706af1268a47328f70a1deb3b76b4807619dd8a/diff:/var/lib/docker/overlay2/e2a4c9c6c8f7ba8e42a07c1a362e26b3a3cf6b9f4b3c535a9ec86117ae3d30ee/diff:/var/lib/docker/overlay2/05f6e88369fa5d6ee59c805932cc18e49ec9c06221de37ac3bc524735de59c9e/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/deba22a7aebf44829c48dea454358e4d5595e4d7d4af807471a00ed50ca08e6b/merged",
"UpperDir": "/var/lib/docker/overlay2/deba22a7aebf44829c48dea454358e4d5595e4d7d4af807471a00ed50ca08e6b/diff",
"WorkDir": "/var/lib/docker/overlay2/deba22a7aebf44829c48dea454358e4d5595e4d7d4af807471a00ed50ca08e6b/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
"sha256:3eed43df44267f2c4a51eafa1273da2f09bff18f94e9b8bf2788f583db4c7457",
"sha256:494e604b4a140b512112cba8d2f0320381eaf9dd6e1cddef870deb84b505577d",
"sha256:a4bcffac016a4692995288d8d71ab2a05be7c2359c2d871cd824fe496e6f417a",
"sha256:1731be77615d4dd202df9d16d647cc66c1a5559c9a7850d44c7d1cbf9e72879c",
"sha256:d206df8a5b98bc4dfeba5c9d62339514584c6854894d3438e79a43d9e6c0bc65",
"sha256:f95044ded8fc12425b9bea88e05ca1fa7bd97165d978b88a9d7af672817f2362",
"sha256:7b4964762c4127a821d516890fccc05b83b9e17239f444c891bf74ac61b49bed",
"sha256:10f79ae85ffdaba936fc6df52afb7db68d32f9bee6ad35af3f3e774147fd79e0",
"sha256:94baa49a87d0c811ed96391ae5f4f9dbe81e9fb17c91d22edbea9c43ebced898",
"sha256:8c5c788f2491153219224492ede194e939c288cbd78fc9b4c2019a296accc505"
]
},
"Metadata": {
"LastTagTime": "2025-01-30T11:36:59.461984305+08:00"
}
}