镜像构建历史
# 2024-12-06 21:52:26 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-12-06 21:52:26 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2024-12-06 21:52:26 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2024-12-06 21:52:26 92.97KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2024-12-06 21:52:26 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2024-12-06 21:52:26 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2024-12-06 21:52:26 648.05MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2024-12-06 21:51:29 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 21:51:28 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 21:51:28 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2024-12-06 21:51:28 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 21:51:28 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:2ba021d9dbfe4fc8a16f4f2174f111794b2d2bb11be187f3a20c4abe11ee7fbc",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.122.1",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.122.1"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:4d39300ab04824c8b3f693c4c7e4efed31e1465aa79c2fc4d7f2122c4fa62461",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:2649e81967bf1c191754e7f7b94c72f83ec7a3b700b4ac969b4d863fc746d123"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-06T13:52:26.732696467Z",
"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-06T14:20:15.990Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "97c1eb72897c34bd00891d1d336504ddddebb857",
"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.1"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779231035,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/45f6728482557494179cffa9fdbec9c18dc02fe26183891d1fb1efe76932ce56/diff:/var/lib/docker/overlay2/f96599e16f68c3cc4c343fb60caaa7a6d33daa9b59fcb175579b1d164242b3d7/diff:/var/lib/docker/overlay2/fa2121b990fc61b5b49b8720737a4486052356db84f64fbb91578d92cf37494c/diff:/var/lib/docker/overlay2/16e33d5bcaf426a9657f557f63b7c858589e2976f11a79e9640db4fe191ddbb9/diff:/var/lib/docker/overlay2/853162016d24cf35de6344a84b4c341d58cf9b771cfa33dd2363ddc76f05c715/diff:/var/lib/docker/overlay2/6f52160015b3f80504865278da5387ae7295a1c2242401cac1cf2bae1d03b102/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/a5e8945acdf3bfbf568cf342741f7e532664af1c2ec8bdec9a35d66744dd5af4/merged",
"UpperDir": "/var/lib/docker/overlay2/a5e8945acdf3bfbf568cf342741f7e532664af1c2ec8bdec9a35d66744dd5af4/diff",
"WorkDir": "/var/lib/docker/overlay2/a5e8945acdf3bfbf568cf342741f7e532664af1c2ec8bdec9a35d66744dd5af4/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c3548211b8264f8bfa47a6727043a64f1791b82ac965a284a7ea187e971a95e2",
"sha256:2440dc0bfce0be50901996dd0de04d2830062f2b2e63a73217fd9237e18c9b7c",
"sha256:25b72b8029f800d4047ffbfc4017258ab87699d0e84084290fc35b89aef1391e",
"sha256:bb4412c1f640a563d7a796fb752395399c529bfd06fa9c451b980b5ee5807d40",
"sha256:e9c92f47b11274effb236ca75fb55b4980bea7d15a08475524aa23b746028335",
"sha256:7980c15c51035b06498c557e559d95a7c455c26b8eb51874a8cb02e545557b7f",
"sha256:418d7d5aa3c4388bfa15d6d473e8a3b55b1fdbaeee90e2f7c26955287fd59fae",
"sha256:bc18286a83a75a78558562b94431188100f9f0c5fa829210223a922c34660d9b",
"sha256:25c8ecb8e6437b9f64d020e9d7c890669130e47ae00836e63bbe61a9e2b42d58",
"sha256:33e1bdf68f80a64f86dde8b9485b730eb611657c698b23405d3da69fa0adec2a",
"sha256:669376235df97f5ca3204fb70ef5ed2cd399ffa23b7aca19dffd6d896e4e930a"
]
},
"Metadata": {
"LastTagTime": "2024-12-08T19:03:44.523668892+08:00"
}
}