Public Access
1
0

fix: improve image build

This commit is contained in:
2025-08-27 21:13:46 -04:00
parent 650694665d
commit 4e0abc72e5
4 changed files with 69 additions and 95 deletions

View File

@@ -1,10 +1,10 @@
#!/bin/sh
# This script is used as the container's entrypoint.
# It ensures that the /app/_data directory (mounted as a volume)
# is owned by the non-root 'appuser', so the application can write to it.
# is owned by the non-root 'node' user, so the application can write to it.
set -e
# Fix ownership of the data volume and execute the main command
chown -R appuser:appgroup /app/_data
exec su-exec appuser "$@"
# Fix ownership of the data volume and execute the main command as the 'node' user
chown -R node:node /app/_data
exec su-exec node "$@"