Commit 163a60c
authored
feat: Update docker file (#1225)
### Summary
The previous Alpine-based image was unreliable for some IDE dev
containers. This change moves to Debian Bookworm slim, adds
ca-certificates so install-idl (git over HTTPS) works inside the image,
and defers npm to after the container starts so a failed install no
longer blocks the dev container from coming up. Image size may grow
slightly, though still in acceptable range.
### Changes
- Dev containers / IDE compatibility: Base image and layout adjusted so
dev containers work consistently across environments that struggled with
the old image.
- ca-certificates + git: Installed via apt-get so TLS verification
succeeds when install-idl runs in-container.
- Dev stage: No longer runs npm ci / dependency install as part of the
image build; npm can be run after start, avoiding failed installs
blocking container startup.
- Build: Removed the extra npm run build step before build-standalone
(standalone path is sufficient).
- Docker ENV: Updated to the modern ENV KEY=value form to clear the old
ENV format warning.
### Testing
- Open the repo in a dev container in the IDEs that previously failed;
confirm the container starts even before npm install / npm ci.
- Check size change:
<img width="753" height="105" alt="Screenshot 2026-03-27 at 17 30 30"
src="https://github.com/user-attachments/assets/bd00f726-f096-48d3-a043-9192437a7150"
/>
- After start, run npm ci (or your usual install) and confirm npm run
install-idl completes without TLS/git errors.
- Docker build default/production target and smoke-test the running app.
- Confirm Docker build logs no longer show the ENV deprecation/warning
(screenshot for old warning):
<img width="897" height="110" alt="Screenshot 2026-03-27 at 18 47 19"
src="https://github.com/user-attachments/assets/6c61e085-50b1-4f69-a3b1-4fe3b17e27f2"
/>1 parent 55bb328 commit 163a60c
1 file changed
+18
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 1 | + | |
18 | 2 | | |
19 | 3 | | |
20 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
21 | 8 | | |
22 | | - | |
23 | 9 | | |
24 | 10 | | |
25 | 11 | | |
26 | | - | |
27 | 12 | | |
28 | 13 | | |
29 | 14 | | |
30 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
31 | 21 | | |
32 | 22 | | |
33 | | - | |
| 23 | + | |
34 | 24 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 25 | + | |
| 26 | + | |
38 | 27 | | |
39 | 28 | | |
40 | | - | |
41 | 29 | | |
42 | 30 | | |
43 | 31 | | |
44 | | - | |
| 32 | + | |
45 | 33 | | |
46 | 34 | | |
47 | 35 | | |
48 | | - | |
| 36 | + | |
49 | 37 | | |
50 | | - | |
| 38 | + | |
51 | 39 | | |
52 | 40 | | |
53 | 41 | | |
| |||
61 | 49 | | |
62 | 50 | | |
63 | 51 | | |
64 | | - | |
| 52 | + | |
65 | 53 | | |
66 | 54 | | |
67 | 55 | | |
| |||
0 commit comments