dan

immich-machine-learning (v3.3.5-cve-2026-111497.3)

Published 2026-11-16 20:13:08 +00:00 by dan

Installation

docker pull forge.coffee-anon.com/dan/immich-machine-learning:v3.3.5-cve-2026-111497.3
sha256:0a6e94c5a908e745a0b418d470081586af51569c28963ed5082ced1f2f2d8e12

About this package

High performance self-hosted photo and video management solution.

Image layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1792531975'
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
ENV PYTHON_VERSION=3.13.16
ENV PYTHON_SHA256=f4b1bfb3c79b5bb11b8d228a12504163b4c0dab4d679828d8f5f26b6cb6ab35d
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev g++ 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 $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; 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 -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
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
CMD ["python3"]
ENV MACHINE_LEARNING_MODEL_ARENA=false
ARG DEVICE=cpu
COPY /libmimalloc.so /usr/lib/libmimalloc.so # buildkit
RUN |1 DEVICE=cpu /bin/sh -c apt-get update && apt-get install -y --no-install-recommends tini ccache libgomp1 && apt-get autoremove -yqq && apt-get clean && rm -rf /var/lib/apt/lists/* && case "$DEVICE" in openvino|rocm);; *) echo /usr/lib/libmimalloc.so > /etc/ld.so.preload;; esac # buildkit
WORKDIR /usr/src
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 VIRTUAL_ENV=/opt/venv MACHINE_LEARNING_CACHE_FOLDER=/cache
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
COPY /opt/venv /opt/venv # buildkit
COPY scripts/healthcheck.py . # buildkit
COPY immich_ml immich_ml # buildkit
ARG BUILD_ID=39650702112
ARG BUILD_IMAGE=v3.3.5
ARG BUILD_SOURCE_REF=v3.3.5
ARG BUILD_SOURCE_COMMIT=8303cb117e197c700332b33b61b45314c9cc5bb4
ENV IMMICH_BUILD=39650702112
ENV IMMICH_BUILD_URL=https://github.com/immich-app/immich/actions/runs/39650702112
ENV IMMICH_BUILD_IMAGE=v3.3.5
ENV IMMICH_BUILD_IMAGE_URL=https://github.com/immich-app/immich/pkgs/container/immich-machine-learning
ENV IMMICH_REPOSITORY=immich-app/immich
ENV IMMICH_REPOSITORY_URL=https://github.com/immich-app/immich
ENV IMMICH_SOURCE_REF=v3.3.5
ENV IMMICH_SOURCE_COMMIT=8303cb117e197c700332b33b61b45314c9cc5bb4
ENV IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/8303cb117e197c700332b33b61b45314c9cc5bb4
ENV HF_HOME=/cache/hf-cache
ENV CUDA_CACHE_PATH=/cache/jit/cuda AMD_COMGR_CACHE_DIR=/cache/jit/comgr NEO_CACHE_DIR=/cache/jit/neo
ENTRYPOINT ["tini" "--"]
CMD ["python" "-m" "immich_ml"]
HEALTHCHECK {Test:[CMD-SHELL python3 healthcheck.py] Interval:0s Timeout:0s StartPeriod:0s StartInterval:0s Retries:0}
LABEL org.opencontainers.image.base.name=ghcr.io/immich-app/immich-machine-learning:v3.3.5 org.opencontainers.image.base.digest=sha256:5b28c9352c8374b8a1ed96fbdd8d6755fea6e43510ec43fdf6538aa02ea40f56 com.coffee-anon.overlay.reason=CVE-2026-111497: Pillow wheels bundle an affected libbrotlidec; built from source. Also upgrades anyio and certifi for critical CVEs com.coffee-anon.overlay.tracking=https://forge.coffee-anon.com/dan/scrapyard-applications/issues/395 com.coffee-anon.overlay.retire-when=upstream ships Pillow >= 13.1.0 (or Brotli >= 1.2.1) and upstream ships anyio >= 4.14.2 and certifi >= 2026.10.18
COPY /wheels/ /wheels/ # buildkit
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends libbrotli1 libfreetype6 libjpeg62-turbo libwebp7 libwebpmux3 libwebpdemux2 libtiff6 libopenjp2-7 liblcms2-2; apt-get install -y --only-upgrade libbrotli1; rm -rf /var/lib/apt/lists/*; pip --python /opt/venv/bin/python install --no-cache-dir --force-reinstall --no-deps /wheels/*.whl; pip --python /opt/venv/bin/python install --no-cache-dir --upgrade "anyio>=4.14.2" "certifi>=2026.10.18"; rm -rf /wheels; dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libbrotli1)" ge 1.1.0-2+deb13u1; ! find / -xdev -type d -name pillow.libs | grep -q .; /opt/venv/bin/python -c "import re, subprocess; from PIL import _imagingft; linkage = subprocess.check_output(['ldd', _imagingft.__file__], text=True); assert re.search(r'libbrotlidec\.so\.1 => /(?:usr/)?lib/\S+', linkage), linkage"; /opt/venv/bin/python -c "import ctypes; l = ctypes.CDLL('libbrotlidec.so.1'); l.BrotliDecoderErrorString.restype = ctypes.c_char_p; assert l.BrotliDecoderErrorString(-17) == b'_ERROR_FORMAT_BLOCK_SWITCH'"; /opt/venv/bin/python -c "from PIL import features as f; assert f.check('jpg') and f.check('freetype2') and f.check('webp')"; /opt/venv/bin/python -c "from importlib.metadata import version as v; import sys; t=lambda s: tuple(int(x) for x in s.split('.')[:3]); assert t(v('pillow'))>=(13,0,0) and t(v('anyio'))>=(4,14,2) and t(v('certifi'))>=(2026,10,18), [v(p) for p in ('pillow','anyio','certifi')]" # buildkit

Labels

Key Value
com.coffee-anon.overlay.reason CVE-2026-111497: Pillow wheels bundle an affected libbrotlidec; built from source. Also upgrades anyio and certifi for critical CVEs
com.coffee-anon.overlay.retire-when upstream ships Pillow >= 13.1.0 (or Brotli >= 1.2.1) and upstream ships anyio >= 4.14.2 and certifi >= 2026.10.18
com.coffee-anon.overlay.tracking https://forge.coffee-anon.com/dan/scrapyard-applications/issues/395
org.opencontainers.image.base.digest sha256:5b28c9352c8374b8a1ed96fbdd8d6755fea6e43510ec43fdf6538aa02ea40f56
org.opencontainers.image.base.name ghcr.io/immich-app/immich-machine-learning:v3.3.5
org.opencontainers.image.created 2026-10-21T18:13:44.122Z
org.opencontainers.image.description High performance self-hosted photo and video management solution.
org.opencontainers.image.licenses AGPL-3.0
org.opencontainers.image.revision 8303cb117e197c700332b33b61b45314c9cc5bb4
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 v3.3.5
Details
Container
2026-11-16 20:13:08 +00:00
69
OCI / Docker
linux/amd64
AGPL-3.0
262 MiB
Versions (4) View all