fix(deployment): Add huggingface cache directory to Dockerfile (#30357)

* Add huggingface cache directory to Dockerfile

Updated Dockerfile to include huggingface cache directory.

* Update Dockerfile environment variables and comments

Removed MPLCONFIGDIR environment variable and adjusted comments.
This commit is contained in:
Matthew Momjian 2026-08-08 12:48:33 -04:00 committed by GitHub
parent e9eafc3161
commit 161e15ee2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,8 +160,8 @@ ENV IMMICH_SOURCE_REF=${BUILD_SOURCE_REF}
ENV IMMICH_SOURCE_COMMIT=${BUILD_SOURCE_COMMIT} ENV IMMICH_SOURCE_COMMIT=${BUILD_SOURCE_COMMIT}
ENV IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/${BUILD_SOURCE_COMMIT} ENV IMMICH_SOURCE_URL=https://github.com/immich-app/immich/commit/${BUILD_SOURCE_COMMIT}
# store matplotlib config in /cache subfolder to enable rootless deployment with a single volume # store huggingface in /cache subfolder to enable rootless deployment with a single volume
ENV MPLCONFIGDIR=/cache/matplotlib ENV HF_HOME=/cache/hf-cache
ENTRYPOINT ["tini", "--"] ENTRYPOINT ["tini", "--"]
CMD ["python", "-m", "immich_ml"] CMD ["python", "-m", "immich_ml"]