mirror of
https://github.com/immich-app/immich.git
synced 2026-10-17 05:12:35 +08:00
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:
@@ -160,8 +160,8 @@ ENV IMMICH_SOURCE_REF=${BUILD_SOURCE_REF}
|
||||
ENV IMMICH_SOURCE_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
|
||||
ENV MPLCONFIGDIR=/cache/matplotlib
|
||||
# store huggingface in /cache subfolder to enable rootless deployment with a single volume
|
||||
ENV HF_HOME=/cache/hf-cache
|
||||
|
||||
ENTRYPOINT ["tini", "--"]
|
||||
CMD ["python", "-m", "immich_ml"]
|
||||
|
||||
Reference in New Issue
Block a user