The Docker browser build was failing because npm scripts used `cd app && command && cd ..`, which is unreliable in Docker RUN contexts and certain shell environments. ## Changes Updated all scripts using directory changes to use subshell isolation: ```diff -"build:server": "npx tsc && cd app && npx webpack --config webpack.browser.config.mjs --mode production && cd ..", +"build:server": "npx tsc && (cd app && npx webpack --config webpack.browser.config.mjs --mode production)", ``` **Updated scripts:** - `build:server` - Docker browser build (primary fix) - `build` - Electron build - `install` - Dependency installation - `test:app`, `test:backend` - Test runners (used in CI) - `dev:app`, `dev:server:app` - Development servers ## Technical details Subshell approach `(cd dir && command)`: - Isolates directory change to subshell scope - Auto-returns to parent directory on subshell exit - More reliable across sh/bash/docker environments - Eliminates manual `cd ..` restoration <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > The build is still failing, can't cd into app. </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
5.6 KiB
5.6 KiB