Commit 890b4f1
fix(docker): cache go mod download and npm install as separate layers
Previously COPY . was the first step, so every source change invalidated
the layer and caused go build to re-download all modules on every CI run.
Now go.mod/go.sum and package.json/package-lock.json are copied first so
module downloads are cached independently of source changes.
Also expose port 8026 (webhook capture server).
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0391c3a commit 890b4f1
1 file changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| |||
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | | - | |
| 33 | + | |
25 | 34 | | |
26 | 35 | | |
27 | 36 | | |
| |||
0 commit comments