Public Access
1
0

feat: add entrypoint script and healthcheck for improved container security and functionality

This commit is contained in:
2025-08-23 18:28:59 -04:00
parent a100ea3159
commit 76d4c9e908
2 changed files with 21 additions and 5 deletions

10
entrypoint.sh Normal file
View File

@@ -0,0 +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.
set -e
# Fix ownership of the data volume and execute the main command
chown -R appuser:appgroup /app/_data
exec su-exec appuser "$@"