fix: run container as host PUID/PGID for workspace mounts

node uid 1000 could not read /home/frank (frank=1002); build and compose now use configurable PUID/PGID.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-08-01 11:21:04 +02:00
parent f7d3df128f
commit eb6b0d2fac
6 changed files with 56 additions and 29 deletions
+8 -4
View File
@@ -3,8 +3,12 @@
# OpenRouter (recommended default provider for this stack)
OPENROUTER_API_KEY=sk-or-v1-replace-me
# Match host user that owns the workspace mount (boka: id -u / id -g → 1002)
PUID=1002
PGID=1002
# Host directory mounted at /workspaces inside the containers.
# On boka, point at the projects Pi should see, e.g.:
# WORKSPACE_HOST_PATH=/home/frank
# For local smoke tests, leave unset to use ./workspaces
WORKSPACE_HOST_PATH=./workspaces
# On boka:
WORKSPACE_HOST_PATH=/home/frank
# For local smoke tests without /home/frank projects:
# WORKSPACE_HOST_PATH=./workspaces