镜像构建历史
# 2024-10-03 10:16:23 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-10-03 10:16:23 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2024-10-03 10:16:23 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2024-10-03 10:16:23 89.87KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2024-10-03 10:16:23 1.05KB 复制新文件或目录到容器中
COPY start.sh log_conf.json ./ # buildkit
# 2024-10-03 10:16:23 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2024-10-03 10:16:23 652.44MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2024-10-03 10:15:32 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-10-03 10:15:32 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-10-03 10:15:32 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2024-10-03 10:15:30 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-10-03 10:15:30 0.00B 定义构建参数
ARG DEVICE=cpu
# 2024-09-10 01:16:05 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-09-10 01:16:05 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-09-10 01:16:05 45.55MB 执行命令并创建新的镜像层
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 libexpat1-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"; 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-system-expat --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:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" 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-09-10 01:16:05 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.10
# 2024-09-10 01:16:05 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-09-10 01:16:05 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-09-10 01:16:05 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-09-10 01:16:05 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-09-10 01:16:05 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-09-10 01:16:05 74.78MB
/bin/sh -c #(nop) ADD file:a9a95cfab16803be03e59ade41622ef5061cf90f2d034304fe4ac1ee9ff30389 in /
镜像信息
{
"Id": "sha256:cc0c567003a3963e55b918fd257d65a2ee4202f4ceaa201e85f62068cfa73297",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:release",
"ghcr.io/immich-app/immich-machine-learning:v1.117.0",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:release",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.117.0"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:1221bc54568a0779227baeaa4282bb0e0db50831b66f9ac9afa9d78513df36ad",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:ac4f2d94e4d472a68fa7d140d6111e796251381f645fd6ca1ce4cccee949b6a6"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-10-03T02:16:23.658796744Z",
"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",
"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-10-03T02:15:13.417Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "6b8462402ba2fa48d4ddbce924b5e3e0987155eb",
"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.117.0"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 783380757,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/87e31debd7e4c0a55fc14f07331a8242d553ca69000d0b3e7a1acb78301365a2/diff:/var/lib/docker/overlay2/9b89f177d840f95ca46e0cfb1269752a7d4aac783501a9761cb1bd7efbff1147/diff:/var/lib/docker/overlay2/584bc424ea16df758ad5c91c837340fdf81547a83b75444cfcbf830fe68ee907/diff:/var/lib/docker/overlay2/b7bdc49f44eae2e4770586fbe77951165aa13d69378cffe3716e51ef0ff0b57d/diff:/var/lib/docker/overlay2/c4e98c8bbff9a6b6c3609b711beb58d81b9dba354c1530b00dd2e9dfdef0d2ab/diff:/var/lib/docker/overlay2/71dea922647eededef9a7b3d9a968571737ab7e26b3d287d0e1adc55359038b4/diff:/var/lib/docker/overlay2/8c6d404e0acdea74dee4cbbbddb2a0b985c49bd2290f651a7286084531aa2c52/diff:/var/lib/docker/overlay2/79367f9f4e40fef6b7e1a70f6e152dfe48e2327f743577bb42fe95d326d9156d/diff:/var/lib/docker/overlay2/14958e597cf9997de97f9fc150a455d1f18dc82329715bf669acb396903f60c3/diff:/var/lib/docker/overlay2/1bccca92078a7af8b31c9945ce2f68029d684347892dd2e49c5a3b836eef3b8c/diff",
"MergedDir": "/var/lib/docker/overlay2/e0e691f5bdf93ee638b33b23b4d5702fdc899eb614938b1884c7a6cb1ca87605/merged",
"UpperDir": "/var/lib/docker/overlay2/e0e691f5bdf93ee638b33b23b4d5702fdc899eb614938b1884c7a6cb1ca87605/diff",
"WorkDir": "/var/lib/docker/overlay2/e0e691f5bdf93ee638b33b23b4d5702fdc899eb614938b1884c7a6cb1ca87605/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
"sha256:1eae3090c894bdd0f65111e623739bffb086c52e0e648ef32b0a0ba83397d061",
"sha256:5b2bbb7d3a14a5b80c6aac1ff9fed365b9971aa1411e25c14626eb9561808370",
"sha256:b37145d52b364708c498d39a83e00753daa2b4f36b7dacfdfe885f54ffae70a0",
"sha256:fda4260bb4e4c2e8ff00a235ceee1fa5c085c05813b9282c9c5e01b4d1dc1327",
"sha256:3ada88140e08ca8d79bdccadc63b24771bbbc0843341de5fa03552ae858e665d",
"sha256:5d22e64f8a2cac571b095102220e10ac57c5070fb12b80ce54974b5018c53d1c",
"sha256:43f7dbd83f5f02c7c2a92ac5ff02e1f99471101efc947bd5d22c72eaa49d3934",
"sha256:3b9f735a18c9e6a8909c7c4fc460cbe21badab844e7fbfbaf7776974a4046a43",
"sha256:820896b5281db9c9565b21105d9316652a6919ee1f5f068f960b34e69577100a",
"sha256:268e6ae2cfef935fa4fc79d549d42c025d6b331c4b6da8f1449832f59e4be7b6"
]
},
"Metadata": {
"LastTagTime": "2024-10-08T02:02:41.441551347+08:00"
}
}