镜像构建历史
# 2024-12-18 00:43:11 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-12-18 00:43:11 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2024-12-18 00:43:11 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2024-12-18 00:43:11 92.97KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2024-12-18 00:43:11 1.46KB 复制新文件或目录到容器中
COPY start.sh log_conf.json gunicorn_conf.py ./ # buildkit
# 2024-12-18 00:43:11 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2024-12-18 00:43:11 648.88MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2024-12-18 00:42:10 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-18 00:42:10 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-18 00:42:10 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2024-12-18 00:42:09 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-18 00:42:09 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 8.48MB 执行命令并创建新的镜像层
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-02 08:00:00 74.82MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1733097600'
镜像信息
{
"Id": "sha256:f22ddbc2195d4d3336249adf7ae7afafa5062c03f67c51f67f6adead6b9e4b09",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.123.0",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.123.0"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:fca90362ff3081fc7762d731eb24de262181eaec28afc51eff1d3ca5348663cd",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:d6e1e49e3ad59d1506eecf8f45306a22903c477a6c556db45dda1d30a035847e"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-17T16:43:11.611488664Z",
"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": "2024-12-17T16:41:58.339Z",
"org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
"org.opencontainers.image.licenses": "AGPL-3.0",
"org.opencontainers.image.revision": "fd34a914a6b2e6dcfbbe53afcf0112cabccc232b",
"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.123.0"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 779353988,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8bcd94c476b26135314f8eccf9c9c827581d50d374821f1edd0314348cfc7f85/diff:/var/lib/docker/overlay2/b5a8506aa7f49799d815a41d4d526a606e5fb281032dd9de04f267d6f51ceea0/diff:/var/lib/docker/overlay2/6f27528a94c4d14a1fcdf08f223cd30cf132e6c93b9c95388f15e1d7cfa124fa/diff:/var/lib/docker/overlay2/615b430889f6a5581eeeed71e18529da230a742643b866eb255726c17011069a/diff:/var/lib/docker/overlay2/4259baf6beec94cca2d283d8e6f05761fad5486d9ec90859350571dbc6878e16/diff:/var/lib/docker/overlay2/87d7ea7528cc2d04b5ab7a87e99ccf018220757e56b85af355b5fb079a59b194/diff:/var/lib/docker/overlay2/1a2f7850c5519060cea5cb1d65cc54a430a08d6d346f72f98ef30f3185aece60/diff:/var/lib/docker/overlay2/39198a5249f49595b379a32d8d80cc4f7cb49337021caf7ca51dbc4bd09accf0/diff:/var/lib/docker/overlay2/74897562657fd40d5c0515726931a3895f41e646999a1d00e09280b30b94d7af/diff:/var/lib/docker/overlay2/404e59c4c9adc52232d40ea19adf6c8d76b2fc9392dc54e49d9840bbd9ffc580/diff",
"MergedDir": "/var/lib/docker/overlay2/3f1c3045ecbb813595f5de83b134296301ff6bd423d303c84d729b76be0dfb61/merged",
"UpperDir": "/var/lib/docker/overlay2/3f1c3045ecbb813595f5de83b134296301ff6bd423d303c84d729b76be0dfb61/diff",
"WorkDir": "/var/lib/docker/overlay2/3f1c3045ecbb813595f5de83b134296301ff6bd423d303c84d729b76be0dfb61/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c0f1022b22a9b36851b358f44e5475e39d166e71a8073cf53c894a299239b1c5",
"sha256:42ca3c4e0243a05de0d6b5acbb61b2e902d621cf9996326d5acbd5e4855bfce1",
"sha256:3a9ca0e18fd5adba3d02c3ee14e4aac0f595924f3bc5718ceae7862c518d9be3",
"sha256:ad05cdcb59cdb4a37f0e44dcc86834aabd4fe795f64c6f6c1108c69fabb625af",
"sha256:45eba7c045c8645fe06d7fa37211b6cd1977fbf87ec44876c34aaf3e8f219c4a",
"sha256:d62049e7e63fa85b4c583818f3a818637b5b07006bca4388591273f075f7e06f",
"sha256:76700aa2e772a0261916f1b2a6dd4b83fa4bd69197874a92f6d4f53293daf758",
"sha256:2e3cd3fa6db6a642b196e2a4a99f3c77593890a3afe6a7841edde747cde7320f",
"sha256:ee4c49e7499399ed1d2919dd9f9234a53c6239bfd01b630bc5c05e3118b22705",
"sha256:a18ab7579c4c667b0832bbf2dc00580858e652ad4280d035d745da1d9732ba14",
"sha256:a8b92224603d808cdadfdc10607f7f634ff28ae2776ddcd6403dd3537c44d3d1"
]
},
"Metadata": {
"LastTagTime": "2024-12-18T09:34:28.891559205+08:00"
}
}