Commit c730e70
committed
fix: use USER directive instead of su-exec entrypoint for media permissions
The entrypoint script running mkdir/chown as root fails when the container
runtime (e.g. Cosmos Cloud) forces a non-root user. Since we use Docker
named volumes (not bind mounts), there's no UID mismatch to fix at
runtime. Switch to a simple USER directive -- the directory is created
and chowned at build time, which is sufficient.
Removes su-exec dependency and docker-entrypoint.sh usage.
https://claude.ai/code/session_0153nX7vQSjEFPpZTgZdDmu51 parent e89d260 commit c730e70
1 file changed
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
63 | 62 | | |
64 | 63 | | |
65 | 64 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 65 | | |
72 | 66 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 67 | + | |
| 68 | + | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
| |||
0 commit comments