Commit c4d5ca8
committed
fix(docker): drop pnpm deploy, copy node_modules directly from builder
pnpm deploy --legacy does a fresh install that skips build scripts
even after find+cp of the .node file into the deploy dir failed to
produce the binary in the correct location.
Fix: skip pnpm deploy entirely. After pnpm rebuild better-sqlite3
the compiled better_sqlite3.node is in /app/node_modules at the
expected .pnpm virtual-store path. Copy that entire node_modules
into the runtime stage — the binary is guaranteed to be present.1 parent b8e0cf2 commit c4d5ca8
2 files changed
+10
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 43 | | |
57 | 44 | | |
58 | 45 | | |
| |||
61 | 48 | | |
62 | 49 | | |
63 | 50 | | |
64 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
65 | 56 | | |
66 | 57 | | |
67 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 32 | | |
44 | 33 | | |
45 | 34 | | |
| |||
48 | 37 | | |
49 | 38 | | |
50 | 39 | | |
51 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
52 | 45 | | |
53 | 46 | | |
54 | 47 | | |
| |||
0 commit comments