Commit 8fee2d2
fix(docker): force fresh install of optional native deps (lightningcss)
npm run build failed with "Cannot find module lightningcss.linux-x64-
gnu.node". Tailwind v4 pulls lightningcss whose platform binary ships as
an optionalDependency, and npm has a long-standing bug that skips those
when a lockfile is present. Drop the lockfile in the deps stage and
install with --include=optional so the Linux binary is fetched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 128978a commit 8fee2d2
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments