Explorar o código

fix: add --legacy-peer-deps flag to npm install in Dockerfile

The Docker build was failing with ERESOLVE unable to resolve dependency tree
error because @lobehub/[email protected] requires antd@^5.23.0 as a peer dependency,
but the project uses [email protected].

npm is stricter than bun about peer dependency conflicts. Adding
--legacy-peer-deps makes npm behave like bun and ignore peer dependency
conflicts, allowing the build to complete.

CI Run: https://github.com/ding113/claude-code-hub/actions/runs/20311163413

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
github-actions[bot] hai 1 mes
pai
achega
34d49dbce9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      deploy/Dockerfile

+ 1 - 1
deploy/Dockerfile

@@ -5,7 +5,7 @@ WORKDIR /app
 
 FROM build-base AS deps
 COPY package.json ./
-RUN npm install --production=false
+RUN npm install --production=false --legacy-peer-deps
 
 FROM deps AS build
 COPY . .