Fix bind-mount data dir permissions via entrypoint
Docker creates ./data root-owned on the host, but the app runs as the unprivileged node user, causing SQLITE_CANTOPEN on first deploy. New entrypoint starts as root, chowns DATA_DIR, then drops privileges with setpriv. Compose keeps the SQLite database in ./data next to the compose file. Also trims scripts/ and playwright artifacts from the image.
This commit is contained in:
@@ -18,6 +18,8 @@ tests
|
||||
.swarm
|
||||
.mcp.json
|
||||
ruvector.db
|
||||
.playwright-mcp
|
||||
scripts
|
||||
|
||||
# Local env files
|
||||
.env
|
||||
|
||||
Reference in New Issue
Block a user