fix: SQLite readonly error in Docker container

- Add entrypoint script that ensures /data is owned by node user
  before dropping privileges with su-exec
- Remove USER node from Dockerfile (entrypoint handles it)
- Change client depends_on to service_healthy so nginx waits for
  the server to pass its healthcheck before starting
This commit is contained in:
MayaTheShy
2026-03-22 19:15:04 -04:00
parent d4a9441b54
commit b49574f39b
3 changed files with 18 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
#!/bin/sh
set -e
# Ensure data directory exists and is writable by the node user
mkdir -p /data
chown node:node /data
# Drop privileges and exec the CMD
exec su-exec node "$@"