Commit b4780a1
authored
Explain why ca-certificates is required in the Node Dockerfile template (#849)
* Explain why ca-certificates is required in the Node Dockerfile template
The previous comment ("enables TLS/SSL for securely fetching dependencies")
implied this is generic Docker hygiene that could be skipped to shave layers.
That framing is misleading: @livekit/rtc-node ships a native Rust core that
reads the system trust store via rustls-tls-native-roots, not Node's bundled
CA roots. node:22-slim doesn't ship /etc/ssl/certs/ca-certificates.crt, so
without ca-certificates Room.connect() fails with the misleading
"failed to retrieve region info" error.
Rewrite the in-template comment to name the cause so a developer trimming the
image knows the line is load-bearing. No functional change.
* Tighten ca-certificates comment
* Restore TLS context and --no-install-recommends note; drop version-specific image name1 parent 1a500d8 commit b4780a1
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments