Commit ae64be8
authored
fix(issuer): disable corepack and use node directly in runtime stage (#15)
## Summary
- Disable corepack in the runtime Docker stage
- Use `node dist/common/server.cjs` directly instead of `pnpm start`
## Why
Corepack tries to write to `/.cache/node/corepack/` at startup. This
fails when running with `readOnlyRootFilesystem: true` or as a non-root
user in Kubernetes (`runAsUser: 65532`).
Since `pnpm start` just runs `node dist/common/server.cjs`, we can call
node directly and avoid the corepack dependency at runtime entirely.
## Test
Built and tested locally:
```
docker build -f apps/issuer/Dockerfile --target issuer -t issuer:test .
docker run --rm --user 65532:65532 --read-only --tmpfs /tmp issuer:test
```
Starts without permission errors (crashes on missing env vars as
expected).1 parent 459b00c commit ae64be8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
0 commit comments