Commit 4364aa1
committed
Fix Docker build peer dependency failure
Critical Fix:
- Copy .npmrc to Docker build context
- Add --legacy-peer-deps flag to npm ci in Dockerfile
- Fixes E2E test failures and build-and-push workflow failures
Root Cause:
- @testing-library/react v15 has peer dependency @types/react@^18
- Frontend uses React 19 with @types/react@^19
- .npmrc with legacy-peer-deps=true works locally but wasn't in Docker
- Docker npm ci failed with ERESOLVE error
Impact:
- E2E workflow builds frontend Docker image - was failing
- build-and-push workflow builds all images - frontend was failing
- These are NOT expected failures - they block the build process
Verified:
- podman build --target deps succeeds ✅
- npm ci --legacy-peer-deps installs all 833 packages ✅1 parent 2d8c033 commit 4364aa1
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments