镜像构建历史
# 2024-12-06 00:31:44 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-12-06 00:31:44 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2024-12-06 00:31:44 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2024-12-06 00:31:44 92.97KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2024-12-06 00:31:44 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2024-12-06 00:31:44 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2024-12-06 00:31:43 648.05MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2024-12-06 00:30: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
# 2024-12-06 00:30: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
# 2024-12-06 00:30:44 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2024-12-06 00:30: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
# 2024-12-06 00:30:43 0.00B 定义构建参数
ARG DEVICE=cpu
# 2024-10-19 07:23:40 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-10-19 07:23:40 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-10-19 07:23:40 45.79MB 执行命令并创建新的镜像层
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-10-19 07:23:40 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372
# 2024-10-19 07:23:40 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.10
# 2024-10-19 07:23:40 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-10-19 07:23:40 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-10-19 07:23:40 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-10-19 07:23:40 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-10-19 07:23:40 0.00B 设置默认要执行的命令
CMD ["bash"]
# 2024-10-19 07:23:40 74.78MB 复制文件或目录到容器中
ADD rootfs.tar.xz / # buildkit
镜像信息
{
"Id": "sha256:1a0fa0ffc30050d22fbcd84b7289e3e009578dfe56dd86beb7c8e425bad9899e",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.122.0",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.122.0"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:c52a1eacd797d94461b11336655595e2083524ecd2e513a8fb9d9d83ccbede94",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:b877fafa36a8ca47a8ad01e32f2b38c9c0ef7d6e80949bc869ea4d984e7e240c"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-05T16:31:44.221767279Z",
"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.10",
"PYTHON_SHA256=07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372",
"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": "2024-12-05T17:02:41.294Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "37220a342a9a3cde67bedfc7a791a6660fa145e1",
"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.122.0"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779231035,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f6a8eaea8451aae75e2ef43c1b8d679a1a595d3c3af094deea3fb221beb43ec1/diff:/var/lib/docker/overlay2/062b84165a0225a19158e70fe5058cbaf1204ac2bec618e8f973fc82ef8d958f/diff:/var/lib/docker/overlay2/2cee82b1335ec15572ab3a9992b7302d24f7567230bca8abd012d0b374c2b5c6/diff:/var/lib/docker/overlay2/6c8bbc49b39099021b5e4ac0727c1c55beab6623ee33b01fdb140704f2004290/diff:/var/lib/docker/overlay2/744a12740e1f2216ffc64c0660250dcbbbf1d147650b80aa8d48b1774fad10e5/diff:/var/lib/docker/overlay2/b100649b7cd03de0d9822b13ade7df2293679736024887150824075407e16ace/diff:/var/lib/docker/overlay2/dd69030d20ac6d3d0f9f8e30b7b7a727a37089ff1a17b093b3d61c24819fea7c/diff:/var/lib/docker/overlay2/87b3cf57ef2287f51509ef99131706e86cd0ce6b6dc767e7167c8699c3c6b689/diff:/var/lib/docker/overlay2/bc9974a3c6be591ca01a33e770d45952d1d84f252bfdd2f7422f80821a33e572/diff:/var/lib/docker/overlay2/91eaeb3375babd906dc7e8a6c516620560ab7dbfb21b9881f9ae71d2e2f398b0/diff",
"MergedDir": "/var/lib/docker/overlay2/867b0263e13aebd31d2d33dc109754e296f4a2deddd5078acc1313e6392260fe/merged",
"UpperDir": "/var/lib/docker/overlay2/867b0263e13aebd31d2d33dc109754e296f4a2deddd5078acc1313e6392260fe/diff",
"WorkDir": "/var/lib/docker/overlay2/867b0263e13aebd31d2d33dc109754e296f4a2deddd5078acc1313e6392260fe/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c3548211b8264f8bfa47a6727043a64f1791b82ac965a284a7ea187e971a95e2",
"sha256:2440dc0bfce0be50901996dd0de04d2830062f2b2e63a73217fd9237e18c9b7c",
"sha256:25b72b8029f800d4047ffbfc4017258ab87699d0e84084290fc35b89aef1391e",
"sha256:bb4412c1f640a563d7a796fb752395399c529bfd06fa9c451b980b5ee5807d40",
"sha256:7522b9542b0eb9263bebb01b11e6054ac047c054bc03147f1f2d1442dacfbfef",
"sha256:74878cf2a2893dc604181309e217d52c7c76e39ba7373829ab3ffe66e1963a0a",
"sha256:9ed2a6072405dddd48aebcf90fed8da437f2ade6296020231f89c8575c8c4e71",
"sha256:cb41a51a38ceb71af9dcce9bedefc73bfb2f52052200024d1b351119a4bab261",
"sha256:fb3b295618324003d29cfa963ae9aaec3c3aef53834a1c3e6048c0279845451b",
"sha256:f23e51b7f6a9950e9e9c4c15165c5a01df505562850bd7d1e9a54013f78d5cd1",
"sha256:6b7f965926968a36e91bc4e0d8a5e935be4bb8cf95e40e1ba7a3bde1228f5cda"
]
},
"Metadata": {
"LastTagTime": "2024-12-06T15:12:54.559245019+08:00"
}
}