Files
local-deep-research/scripts
tombii 76247ff048 Fix Docker volume permissions error for /data directory
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>
2025-12-02 14:09:12 +01:00
..