diff --git a/packages/web-ui/example/Dockerfile b/packages/web-ui/example/Dockerfile index ec1b30e..a90fb31 100644 --- a/packages/web-ui/example/Dockerfile +++ b/packages/web-ui/example/Dockerfile @@ -17,15 +17,17 @@ WORKDIR /monorepo # Copy entire monorepo so file: workspace links resolve COPY . . +# Kill the husky prepare script - binary doesn't exist in container +RUN node -e "const p=require('./package.json'); delete p.scripts.prepare; require('fs').writeFileSync('./package.json', JSON.stringify(p,null,2))" + # Install and build workspace packages in dependency order -# HUSKY=0 prevents the prepare script from failing -RUN cd packages/ai && npm install && npm run build -RUN cd packages/tui && npm install && npm run build -RUN cd packages/agent && npm install && npm run build -RUN cd packages/web-ui && npm install && npm run build +RUN cd packages/ai && npm install --ignore-scripts && npm run build +RUN cd packages/tui && npm install --ignore-scripts && npm run build +RUN cd packages/agent && npm install --ignore-scripts && npm run build +RUN cd packages/web-ui && npm install --ignore-scripts && npm run build # Install example app dependencies -RUN cd packages/web-ui/example && npm install +RUN cd packages/web-ui/example && npm install --ignore-scripts # Install Playwright Chromium RUN cd packages/web-ui/example && npx playwright install chromium