Commit dfb39b4
fix(ambient-ui): fix standalone output path in Dockerfile (#1620)
## Summary
- Fix `Cannot find module '/app/server.js'` crash at container startup
- `outputFileTracingRoot` resolves `../..` to `/` in Docker (WORKDIR
`/app`), so standalone output nests under `app/`
(`.next/standalone/app/server.js`), not `components/ambient-ui/`
- Use correct hardcoded path: `cp -r .next/standalone/app/.
/app-output/`
## Verification
Tested locally with podman:
- `server.js` present at `/app/server.js`
- Container starts, Next.js returns 200
## Test plan
- [ ] CI Docker build passes
- [ ] Container starts without `MODULE_NOT_FOUND`
- [ ] Ambient UI accessible via route
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b5e6290 commit dfb39b4
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
| |||
0 commit comments