run-llama / chat-llamaindex

https://chat.llamaindex.ai
MIT License
849 stars 261 forks source link

[Bug] Docker install failed #99

Open s3219521aa opened 2 months ago

s3219521aa commented 2 months ago

Describe the bug run docker build -t chat-llamaindex . failed

Deployment

Desktop (please complete the following information): win 11

Additional Logs

=> ERROR [build 9/9] RUN pnpm build 31.0s

[build 9/9] RUN pnpm build: 1.110 1.110 > chat-llamaindex@ build /usr/src/app 1.110 > npm run create-llama && next build 1.110 1.303 1.303 > create-llama 1.303 > bash create-llama.sh 1.303 1.316 1.316 Adding sources from create-llama... 18.83 npm warn skipping integrity check for git dependency ssh://git@github.com/watson/ci-info.git 30.77 node:internal/modules/cjs/loader:1143 30.77 throw err; 30.77 ^ 30.77 30.77 Error: Cannot find module '/usr/src/app/node_modules/next/dist/bin/next' 30.77 at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15) 30.77 at Module._load (node:internal/modules/cjs/loader:981:27) 30.77 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) 30.77 at node:internal/main/run_main_module:28:49 { 30.77 code: 'MODULE_NOT_FOUND', 30.77 requireStack: [] 30.77 } 30.77 30.77 Node.js v18.20.4 30.79  ELIFECYCLE  Command failed with exit code 1.

Dockerfile:27

25 | 26 | # Build the application for production 27 | >>> RUN pnpm build 28 | 29 | # ---- Production Stage ----

ERROR: failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 1