From 0142001fc2c9eba73fe4cef0aa14f6c7eb85ce7d Mon Sep 17 00:00:00 2001 From: wangxiaolei Date: Tue, 10 Feb 2026 17:47:46 +0800 Subject: [PATCH] fix: fix no dify home directory lead permission error (#32169) --- docker/.env.example | 3 +++ docker/docker-compose.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/docker/.env.example b/docker/.env.example index 93099347bd..8edd0f203e 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -62,6 +62,9 @@ LANG=C.UTF-8 LC_ALL=C.UTF-8 PYTHONIOENCODING=utf-8 +# Set UV cache directory to avoid permission issues with non-existent home directory +UV_CACHE_DIR=/tmp/.uv-cache + # ------------------------------ # Server Configuration # ------------------------------ diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 161fdc6c3f..5c09d203cd 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -16,6 +16,7 @@ x-shared-env: &shared-api-worker-env LANG: ${LANG:-C.UTF-8} LC_ALL: ${LC_ALL:-C.UTF-8} PYTHONIOENCODING: ${PYTHONIOENCODING:-utf-8} + UV_CACHE_DIR: ${UV_CACHE_DIR:-/tmp/.uv-cache} LOG_LEVEL: ${LOG_LEVEL:-INFO} LOG_OUTPUT_FORMAT: ${LOG_OUTPUT_FORMAT:-text} LOG_FILE: ${LOG_FILE:-/app/logs/server.log}