Commit 0368126
committed
fix: make container UID/GID configurable for bind-mount compatibility
When using bind mounts, the host directory's UID/GID must match the
container user. Add PUID/PGID build args (default 1000) so users can
build with --build-arg PUID=$(id -u) --build-arg PGID=$(id -g) to
match their host user. Compose passes these from .env or shell vars.
https://claude.ai/code/session_0153nX7vQSjEFPpZTgZdDmu51 parent c730e70 commit 0368126
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments