fix: docker permission again.
Some checks failed
Build and Push Docker Image / buildx (push) Has been cancelled

This commit is contained in:
2025-11-11 15:24:40 +08:00
parent cf74607dbf
commit 3c271a2a72
3 changed files with 30 additions and 2 deletions

14
scripts/init-data-dir.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Create data directory if it doesn't exist
mkdir -p /app/data
# Try to set permissions for the data directory
# This might fail in some environments, but that's okay
chown -R 1001:1001 /app/data 2>/dev/null || true
chmod 755 /app/data 2>/dev/null || true
echo "Data directory initialized"
# Execute the main command
exec "$@"