镜像构建历史
# 2024-10-03 10:16:02 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "python3 healthcheck.py"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-10-03 10:16:02 0.00B 设置默认要执行的命令
CMD ["./start.sh"]
# 2024-10-03 10:16:02 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["tini" "--"]
# 2024-10-03 10:16:02 89.87KB 复制新文件或目录到容器中
COPY app . # buildkit
# 2024-10-03 10:16:02 1.05KB 复制新文件或目录到容器中
COPY start.sh log_conf.json ./ # buildkit
# 2024-10-03 10:16:02 6.78KB 复制新文件或目录到容器中
COPY ann/ann.py /usr/src/ann/ann.py # buildkit
# 2024-10-03 10:16:02 781.49MB 复制新文件或目录到容器中
COPY /opt/venv /opt/venv # buildkit
# 2024-10-03 10:15:24 3.58KB 执行命令并创建新的镜像层
RUN |1 DEVICE=openvino /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:24 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=openvino
# 2024-10-03 10:15:24 0.00B 设置工作目录为/usr/src/app
WORKDIR /usr/src/app
# 2024-10-03 10:15:24 1.17MB 执行命令并创建新的镜像层
RUN |1 DEVICE=openvino /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:24 0.00B 定义构建参数
ARG DEVICE=openvino
# 2024-10-03 10:15:21 253.77MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update && apt-get install --no-install-recommends -yqq ocl-icd-libopencl1 wget && wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17384.11/intel-igc-core_1.0.17384.11_amd64.deb && wget https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17384.11/intel-igc-opencl_1.0.17384.11_amd64.deb && wget https://github.com/intel/compute-runtime/releases/download/24.31.30508.7/intel-opencl-icd_24.31.30508.7_amd64.deb && wget https://github.com/intel/compute-runtime/releases/download/24.31.30508.7/libigdgmm12_22.4.1_amd64.deb && dpkg -i *.deb && rm *.deb && apt-get remove wget -yqq && rm -rf /var/lib/apt/lists/* # buildkit
# 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:59e757efd0274ee00f3c4ad95d7f841df19054e0a084a520e9322879b0d13957",
"RepoTags": [
"ghcr.io/immich-app/immich-machine-learning:v1.117.0-openvino",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning:v1.117.0-openvino"
],
"RepoDigests": [
"ghcr.io/immich-app/immich-machine-learning@sha256:127c51cfab03fb00a07349ed5e118520b870f7cb9fc1125e320f0704aa392ca9",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/immich-app/immich-machine-learning@sha256:b4682484359e5d680c634119ebaff4b78da438bec6d7036ce0ec3c53dbffbb4d"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-10-03T02:16:02.65186014Z",
"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=openvino"
],
"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:07.427Z",
"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-openvino"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 1166086929,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/731c61aac2f53d27194bd665e297a894d233893fb20dc27baa9513efe4c1f968/diff:/var/lib/docker/overlay2/cb0234a9bbf09f204fe2b5d54e5e9c92c727d8d4d656a2b1cd51cf68aecf8ded/diff:/var/lib/docker/overlay2/25970c9ed7a2af792efbd2d8b7078888ac75fa1763dc6b4138a9de3db912b39a/diff:/var/lib/docker/overlay2/e563cf523d17a0ca09fef4d0ef6209f53869e1d2b6a510bb520102ed6c72f848/diff:/var/lib/docker/overlay2/40f4f09fc9a454a520e85d023495026a6ba3d5507012d8b9439e05d2a543a6cf/diff:/var/lib/docker/overlay2/b1c05038715db4dfbc4f743bfb2f1cd33433940dc4d992165921223eb193b642/diff:/var/lib/docker/overlay2/46f0204df9bff97c101ee9bcc3a923b1fff3fb6c1a39e2d981a75bc6b372d55c/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/2a0a64b1e508a236d1599e0066b805e6ac79258c07824febc833f797fdcf5377/merged",
"UpperDir": "/var/lib/docker/overlay2/2a0a64b1e508a236d1599e0066b805e6ac79258c07824febc833f797fdcf5377/diff",
"WorkDir": "/var/lib/docker/overlay2/2a0a64b1e508a236d1599e0066b805e6ac79258c07824febc833f797fdcf5377/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:8d853c8add5d1e7b0aafc4b68a3d9fb8e7a0da27970c2acf831fe63be4a0cd2c",
"sha256:1eae3090c894bdd0f65111e623739bffb086c52e0e648ef32b0a0ba83397d061",
"sha256:5b2bbb7d3a14a5b80c6aac1ff9fed365b9971aa1411e25c14626eb9561808370",
"sha256:b37145d52b364708c498d39a83e00753daa2b4f36b7dacfdfe885f54ffae70a0",
"sha256:368b94833de1e6f4de15dc8bf9106c30e12e51962a7f196e8fd6f3d11572b769",
"sha256:3343ddf44a6787aabf6a3ba293330b60ceeab847c6c9e1de8bf013fd0a46d974",
"sha256:1ad97e424ab57af9e0b5b4873751640b961306bce12de17477920398da1565bc",
"sha256:a4fc2ac5d6864794553247866e4e7262e9aae642c6d69cfb8790986113461eba",
"sha256:a32ac13a79cfcece48e50e67b50dfab8560d3d39475deb6319c5fd25dee02585",
"sha256:2c42cb5601ad44a808e376856fec5a579a1a22d381bee39a9b7a3837052523df",
"sha256:1e06af2f0114acea9e2e422bcc1654be0d71eb55f45c4b069790e83cfba978c3",
"sha256:5861c872093eb7305e967d8fb5ab5ade7cb7c9a50f40b821b714d259a0f3e0e3"
]
},
"Metadata": {
"LastTagTime": "2024-10-12T10:00:15.990863512+08:00"
}
}