Fix container to run app as routewatch user

Use runuser to drop privileges and execute the app as the routewatch
user (uid 1000). Fix data directory permissions at runtime since host
mounts may have incorrect ownership.
This commit is contained in:
2025-12-31 16:17:59 -08:00
parent f788a0dbf9
commit c6fa2b0fbd
2 changed files with 10 additions and 3 deletions

7
entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
cd /var/lib/berlin.sneak.app.routewatch
chown -R routewatch:routewatch .
chmod 700 .
exec runuser -u routewatch -- /app/routewatch