mirror of
https://github.com/LearningCircuit/local-deep-research.git
synced 2026-06-15 19:46:56 +03:00
Fixes PermissionError when container tries to create /data/logs and other subdirectories. Docker named volumes are created with root ownership, but the application runs as ldruser (UID 1000). Changes: - Add entrypoint script (ldr_entrypoint.sh) to handle volume setup - Install gosu for safe privilege dropping - Create required subdirectories with correct ownership - Use 700 permissions for security (owner-only access) - Remove USER directive (entrypoint handles user switching) The entrypoint runs as root to fix permissions, then drops to ldruser before starting the application. This is the standard Docker pattern for handling volume permissions with non-root containers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>