Skip to content

Commit 7e5ed51

Browse files
committed
fix(docker): fixed ownership for bind-mounted app directories
1 parent 3ec0ffb commit 7e5ed51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docker/docker-entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ if ! id appuser >/dev/null 2>&1; then
1616
adduser -u ${UID} -G appuser -D -s /bin/sh appuser
1717
fi
1818

19-
# Fix ownership of /app directory
20-
chown -R appuser:appuser /app
19+
# Fix ownership of app directories (exclude bind mounts like /app/sync and /app/config)
20+
chown appuser:appuser /app
21+
chown appuser:appuser -R /app/config
22+
chown -R appuser:appuser /app/src /app/static 2>/dev/null || true
2123

2224
# Switch to appuser and run the command
2325
exec su-exec appuser "$@"

0 commit comments

Comments
 (0)