Closed lupnis closed 3 months ago
I am also facing a similar issue when building the Docker images from source.
git clone https://github.com/infiniflow/ragflow.git
cd ragflow/
docker build -t infiniflow/ragflow:dev .
$ docker build -t infiniflow/ragflow:dev .
[+] Building 192.2s (7/16) docker:default
[+] Building 192.4s (7/16) docker:default
[+] Building 192.5s (7/16) docker:default
[+] Building 192.7s (7/16) docker:default
[+] Building 192.8s (7/16) docker:default
[+] Building 192.8s (7/16) docker:default
[+] Building 193.0s (7/16) docker:default
[+] Building 193.1s (7/16) docker:default
[+] Building 193.2s (7/16) docker:default
[+] Building 193.4s (7/16) docker:default
[+] Building 193.5s (7/16) docker:default
[+] Building 193.7s (7/16) docker:default
[+] Building 193.8s (7/16) docker:default
[+] Building 194.0s (7/16) docker:default
[+] Building 194.1s (7/16) docker:default
[+] Building 194.3s (7/16) docker:default
[+] Building 194.4s (7/16) docker:default
[+] Building 194.5s (7/16) docker:default
[+] Building 196.0s (7/16) docker:default
[+] Building 196.1s (7/16) docker:default
[+] Building 196.3s (7/16) docker:default
[+] Building 196.4s (7/16) docker:default
[+] Building 196.6s (7/16) docker:default
[+] Building 196.6s (7/16) docker:default
[+] Building 196.7s (7/16) docker:default
[+] Building 196.8s (7/16) docker:default
[+] Building 197.0s (7/16) docker:default
[+] Building 197.1s (7/16) docker:default
[+] Building 197.3s (7/16) docker:default
[+] Building 197.4s (7/16) docker:default
[+] Building 197.6s (7/16) docker:default
[+] Building 197.7s (7/16) docker:default
[+] Building 197.9s (7/16) docker:default
[+] Building 197.9s (7/16) docker:default
[+] Building 198.1s (7/16) docker:default
[+] Building 198.2s (7/16) docker:default
[+] Building 198.4s (7/16) docker:default
[+] Building 198.5s (7/16) docker:default
[+] Building 198.7s (7/16) docker:default
[+] Building 198.8s (7/16) docker:default
[+] Building 199.0s (7/16) docker:default
[+] Building 199.1s (7/16) docker:default [+] Building 199.3s (7/16) docker:default [+] Building 199.4s (7/16) docker:default [+] Building 199.6s (7/16) docker:default [+] Building 199.7s (7/16) docker:default [+] Building 199.9s (7/16) docker:default [+] Building 200.0s (7/16) docker:default [+] Building 200.2s (7/16) docker:default [+] Building 200.3s (7/16) docker:default [+] Building 200.5s (7/16) docker:default [+] Building 200.6s (7/16) docker:default [+] Building 200.8s (7/16) docker:default [+] Building 200.9s (7/16) docker:default [+] Building 201.1s (7/16) docker:default [+] Building 201.2s (7/16) docker:default
[+] Building 201.4s (7/16) docker:default
[+] Building 201.5s (7/16) docker:default
[+] Building 201.7s (7/16) docker:default
[+] Building 201.8s (7/16) docker:default [+] Building 202.0s (7/16) docker:default [+] Building 202.1s (7/16) docker:default [+] Building 202.3s (7/16) docker:default [+] Building 202.4s (7/16) docker:default [+] Building 202.6s (7/16) docker:default [+] Building 202.7s (7/16) docker:default [+] Building 202.9s (7/16) docker:default [+] Building 203.0s (7/16) docker:default [+] Building 203.2s (7/16) docker:default [+] Building 203.3s (7/16) docker:default [+] Building 203.5s (7/16) docker:default [+] Building 203.5s (7/16) docker:default [+] Building 203.7s (7/16) docker:default [+] Building 203.8s (7/16) docker:default [+] Building 204.0s (7/16) docker:default [+] Building 204.1s (7/16) docker:default [+] Building 204.3s (7/16) docker:default [+] Building 204.4s (7/16) docker:default [+] Building 204.6s (7/16) docker:default [+] Building 204.7s (7/16) docker:default [+] Building 204.9s (7/16) docker:default [+] Building 205.0s (7/16) docker:default [+] Building 205.2s (7/16) docker:default [+] Building 205.3s (7/16) docker:default [+] Building 205.5s (7/16) docker:default [+] Building 205.6s (7/16) docker:default [+] Building 205.8s (7/16) docker:default [+] Building 205.9s (7/16) docker:default [+] Building 206.1s (7/16) docker:default [+] Building 206.2s (7/16) docker:default [+] Building 206.4s (7/16) docker:default [+] Building 206.5s (7/16) docker:default [+] Building 206.7s (7/16) docker:default [+] Building 206.8s (7/16) docker:default [+] Building 207.0s (7/16) docker:default [+] Building 207.1s (7/16) docker:default [+] Building 207.3s (7/16) docker:default [+] Building 207.4s (7/16) docker:default [+] Building 207.6s (7/16) docker:default [+] Building 207.7s (7/16) docker:default [+] Building 207.9s (7/16) docker:default [+] Building 208.0s (7/16) docker:default [+] Building 208.2s (7/16) docker:default [+] Building 208.3s (7/16) docker:default [+] Building 208.5s (7/16) docker:default [+] Building 208.6s (7/16) docker:default [+] Building 208.8s (7/16) docker:default [+] Building 208.9s (7/16) docker:default [+] Building 209.1s (7/16) docker:default [+] Building 209.2s (7/16) docker:default [+] Building 209.4s (7/16) docker:default [+] Building 209.5s (7/16) docker:default [+] Building 209.7s (7/16) docker:default [+] Building 209.8s (7/16) docker:default [+] Building 210.0s (7/16) docker:default [+] Building 210.1s (7/16) docker:default [+] Building 210.3s (7/16) docker:default [+] Building 210.4s (7/16) docker:default [+] Building 210.6s (7/16) docker:default [+] Building 210.7s (7/16) docker:default [+] Building 210.9s (7/16) docker:default [+] Building 211.0s (7/16) docker:default [+] Building 211.2s (7/16) docker:default [+] Building 211.3s (7/16) docker:default [+] Building 211.5s (7/16) docker:default [+] Building 211.6s (7/16) docker:default [+] Building 211.8s (7/16) docker:default [+] Building 211.9s (7/16) docker:default [+] Building 212.1s (7/16) docker:default [+] Building 212.2s (7/16) docker:default [+] Building 212.4s (7/16) docker:default [+] Building 212.5s (7/16) docker:default [+] Building 212.7s (7/16) docker:default [+] Building 212.8s (7/16) docker:default [+] Building 213.0s (7/16) docker:default [+] Building 213.1s (7/16) docker:default [+] Building 213.3s (7/16) docker:default [+] Building 213.4s (7/16) docker:default [+] Building 213.6s (7/16) docker:default [+] Building 213.7s (7/16) docker:default [+] Building 213.9s (7/16) docker:default [+] Building 214.0s (7/16) docker:default [+] Building 214.2s (7/16) docker:default [+] Building 214.3s (7/16) docker:default [+] Building 214.5s (7/16) docker:default [+] Building 214.6s (7/16) docker:default [+] Building 214.8s (7/16) docker:default [+] Building 214.9s (7/16) docker:default [+] Building 215.1s (7/16) docker:default [+] Building 215.2s (7/16) docker:default [+] Building 215.4s (7/16) docker:default [+] Building 215.5s (7/16) docker:default [+] Building 215.7s (7/16) docker:default [+] Building 215.8s (7/16) docker:default [+] Building 216.0s (7/16) docker:default [+] Building 216.1s (7/16) docker:default [+] Building 216.3s (7/16) docker:default [+] Building 216.4s (7/16) docker:default [+] Building 216.6s (7/16) docker:default [+] Building 216.7s (7/16) docker:default [+] Building 216.9s (7/16) docker:default [+] Building 217.0s (7/16) docker:default [+] Building 217.2s (7/16) docker:default [+] Building 217.3s (7/16) docker:default [+] Building 217.5s (7/16) docker:default [+] Building 217.6s (7/16) docker:default [+] Building 217.8s (7/16) docker:default [+] Building 217.9s (7/16) docker:default [+] Building 218.1s (7/16) docker:default [+] Building 218.2s (7/16) docker:default [+] Building 218.4s (7/16) docker:default [+] Building 218.5s (7/16) docker:default [+] Building 218.7s (7/16) docker:default [+] Building 218.8s (7/16) docker:default [+] Building 219.0s (7/16) docker:default [+] Building 219.1s (7/16) docker:default [+] Building 219.3s (7/16) docker:default [+] Building 219.4s (7/16) docker:default [+] Building 219.6s (7/16) docker:default [+] Building 219.7s (7/16) docker:default [+] Building 219.9s (7/16) docker:default [+] Building 220.0s (7/16) docker:default [+] Building 220.2s (7/16) docker:default [+] Building 220.3s (7/16) docker:default [+] Building 220.5s (7/16) docker:default [+] Building 220.6s (7/16) docker:default [+] Building 220.8s (7/16) docker:default [+] Building 220.9s (7/16) docker:default [+] Building 221.1s (7/16) docker:default [+] Building 221.2s (7/16) docker:default [+] Building 221.4s (7/16) docker:default [+] Building 221.5s (7/16) docker:default [+] Building 221.7s (7/16) docker:default [+] Building 221.8s (7/16) docker:default [+] Building 222.0s (7/16) docker:default [+] Building 222.1s (7/16) docker:default [+] Building 222.3s (7/16) docker:default [+] Building 222.4s (7/16) docker:default [+] Building 222.6s (7/16) docker:default [+] Building 222.7s (7/16) docker:default [+] Building 222.9s (7/16) docker:default [+] Building 223.0s (7/16) docker:default [+] Building 223.2s (7/16) docker:default [+] Building 223.3s (7/16) docker:default [+] Building 223.5s (7/16) docker:default [+] Building 223.6s (7/16) docker:default [+] Building 223.8s (7/16) docker:default [+] Building 223.9s (7/16) docker:default [+] Building 224.1s (7/16) docker:default [+] Building 224.2s (7/16) docker:default [+] Building 224.4s (7/16) docker:default [+] Building 224.5s (7/16) docker:default [+] Building 224.7s (7/16) docker:default [+] Building 224.8s (7/16) docker:default [+] Building 225.0s (7/16) docker:default [+] Building 225.1s (7/16) docker:default [+] Building 225.3s (7/16) docker:default [+] Building 225.4s (7/16) docker:default [+] Building 225.6s (7/16) docker:default [+] Building 225.7s (7/16) docker:default [+] Building 225.9s (7/16) docker:default [+] Building 226.0s (7/16) docker:default [+] Building 226.2s (7/16) docker:default [+] Building 226.3s (7/16) docker:default [+] Building 226.5s (7/16) docker:default [+] Building 226.6s (7/16) docker:default [+] Building 226.8s (7/16) docker:default [+] Building 226.9s (7/16) docker:default [+] Building 227.1s (7/16) docker:default [+] Building 227.2s (7/16) docker:default [+] Building 231.0s (8/16) docker:default => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 548B 0.0s => [internal] load metadata for docker.io/infiniflow/ragflow-base:v2.0 0.6s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [ 1/12] FROM docker.io/infiniflow/ragflow-base:v2.0@sha256:6c1e68bd7c957bf2efa6147305a06eac589d7474b431a16df50906b730f18711 157.7s => => resolve docker.io/infiniflow/ragflow-base:v2.0@sha256:6c1e68bd7c957bf2efa6147305a06eac589d7474b431a16df50906b730f18711 0.0s => => sha256:d66d6a6a368713979f9d00fad193991ae1af18b8efd3abf4d70ade192807c1bd 30.45MB / 30.45MB 0.8s => => sha256:fb395f539ec6e8ddb515fc2cf3699ed73944c1a038af68b16a0c05346a1201b1 521.28MB / 521.28MB 12.9s => => sha256:6c1e68bd7c957bf2efa6147305a06eac589d7474b431a16df50906b730f18711 4.94kB / 4.94kB 0.0s => => sha256:6106e44c0c7925ed2e2696d20f1123a4555f3a0b029dec0afad28073d2cd338b 6.57kB / 6.57kB 0.0s => => sha256:e969618d45ccd60fd2873407a92683ec6b01569489fe40e7571141a2726660a4 97B / 97B 0.2s => => sha256:7458993558132a96511c06938d6e2cac61ef32af0c130eb11a95a418798dd1ed 2.11MB / 2.11MB 0.4s => => sha256:0dc03a7cf05707341f082b50f21b25ce6b9a8f6d1c011b50d773f52c94e1f8ad 5.86MB / 5.86MB 0.6s => => sha256:aa273b3a17bcfb9d7ba649c0c89de6e2c98a59f0520bd82b24ffd8b8aeab8e61 1.37kB / 1.37kB 0.7s => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.8s => => extracting sha256:d66d6a6a368713979f9d00fad193991ae1af18b8efd3abf4d70ade192807c1bd 0.5s => => sha256:fb2ab1ff9d833009b8a5cda6a305076998f5cfadb0be4f6f7a7de28035cf7377 1.32kB / 1.32kB 0.9s => => sha256:d06f23c2cbe14d5a3b82bdfedc421da8a48ea0217f03c3621e16118b6065ec63 7.11GB / 7.11GB 109.2s => => sha256:eb68fb06a9a7cc37f7700b186fdb3c1d27d11cec4417aca7d668326e1239202f 38.50MB / 38.50MB 2.2s => => extracting sha256:e969618d45ccd60fd2873407a92683ec6b01569489fe40e7571141a2726660a4 0.0s => => sha256:d163a8b4330507adb25256b78b89cf3c050dc23053307ad51f82939a648e7b2f 597.50kB / 597.50kB 2.3s => => sha256:69e195eb397c1090d723310bf7b2b832d3aae6af6658fa112979653a25dad03f 81.47MB / 81.47MB 4.9s => => sha256:7b21f5823e9bbe766476f0b4d97d5ba82fd829d9d7dea84bb342d7fc8b8e9621 129B / 129B 5.0s => => sha256:e98de0bf142d0b1d7b402d905a55e7072068b260c0883bf9d9948fc7e17525e6 785.20kB / 785.20kB 5.2s => => sha256:ec80654f9e2963d282c272318a232bd9471a33b21fde792da8698ad2a08eb5cc 145.02MB / 145.02MB 9.9s => => sha256:7d8c25b345431c96ec68c04146b11df0ee256cda60f31ec7f1e459d16fc43235 728.67kB / 728.67kB 10.1s => => sha256:b64db2d044cf8e0023caf26fc0b38ef3ec0530042f2ff1271d7bc3c9d095913f 6.95MB / 6.95MB 10.4s => => sha256:a9e42bf6c6eb85329ef00940dda8e54a97dd6b4068d9b329dc82e7de357ca869 197.12MB / 197.12MB 14.7s => => extracting sha256:fb395f539ec6e8ddb515fc2cf3699ed73944c1a038af68b16a0c05346a1201b1 7.8s => => sha256:ccae0efba7a7c2782f68c2d2c24c7247d4a4fd0478b16538d387ca7093be64bf 982.78kB / 982.78kB 13.0s => => sha256:a2ef789c33fcacad1bf52567c4c0114faeadb7ad2261e3be20aeb5dd719697b7 1.04MB / 1.04MB 13.1s => => sha256:ae33b309d29d372b25b6512182d74fcd5d47e143a84763dacb34ea2e977faa8c 302.56kB / 302.56kB 13.3s => => extracting sha256:7458993558132a96511c06938d6e2cac61ef32af0c130eb11a95a418798dd1ed 0.0s => => extracting sha256:0dc03a7cf05707341f082b50f21b25ce6b9a8f6d1c011b50d773f52c94e1f8ad 0.2s => => extracting sha256:aa273b3a17bcfb9d7ba649c0c89de6e2c98a59f0520bd82b24ffd8b8aeab8e61 0.0s
=> => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s
=> => extracting sha256:fb2ab1ff9d833009b8a5cda6a305076998f5cfadb0be4f6f7a7de28035cf7377 0.0s
=> => extracting sha256:d06f23c2cbe14d5a3b82bdfedc421da8a48ea0217f03c3621e16118b6065ec63 41.6s
=> => extracting sha256:eb68fb06a9a7cc37f7700b186fdb3c1d27d11cec4417aca7d668326e1239202f 0.2s
=> => extracting sha256:d163a8b4330507adb25256b78b89cf3c050dc23053307ad51f82939a648e7b2f 0.1s
=> => extracting sha256:69e195eb397c1090d723310bf7b2b832d3aae6af6658fa112979653a25dad03f 1.1s
=> => extracting sha256:7b21f5823e9bbe766476f0b4d97d5ba82fd829d9d7dea84bb342d7fc8b8e9621 0.0s
=> => extracting sha256:e98de0bf142d0b1d7b402d905a55e7072068b260c0883bf9d9948fc7e17525e6 0.0s
=> => extracting sha256:ec80654f9e2963d282c272318a232bd9471a33b21fde792da8698ad2a08eb5cc 1.4s
=> => extracting sha256:7d8c25b345431c96ec68c04146b11df0ee256cda60f31ec7f1e459d16fc43235 0.0s
=> => extracting sha256:b64db2d044cf8e0023caf26fc0b38ef3ec0530042f2ff1271d7bc3c9d095913f 0.5s
=> => extracting sha256:a9e42bf6c6eb85329ef00940dda8e54a97dd6b4068d9b329dc82e7de357ca869 1.8s
=> => extracting sha256:ccae0efba7a7c2782f68c2d2c24c7247d4a4fd0478b16538d387ca7093be64bf 0.0s
=> => extracting sha256:a2ef789c33fcacad1bf52567c4c0114faeadb7ad2261e3be20aeb5dd719697b7 0.1s
=> => extracting sha256:ae33b309d29d372b25b6512182d74fcd5d47e143a84763dacb34ea2e977faa8c 0.0s
=> [internal] load build context 12.9s
=> => transferring context: 52.83MB 12.9s
=> [ 2/12] WORKDIR /ragflow 1.9s
=> [ 3/12] ADD ./web ./web 0.1s
=> ERROR [ 4/12] RUN cd ./web && npm i --force && npm run build 70.5s
------
> [ 4/12] RUN cd ./web && npm i --force && npm run build:
0.432 npm WARN using --force Recommended protections disabled.
19.95 npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
19.96 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
20.09 npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead
20.14 npm WARN deprecated @types/testing-library__jest-dom@6.0.0: This is a stub types definition. @testing-library/jest-dom provides its own type definitions, so you do not need this installed.
20.14 npm WARN deprecated @types/history@5.0.0: This is a stub types definition. history provides its own type definitions, so you do not need this installed.
20.18 npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
20.23 npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
20.31 npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
20.35 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
20.48 npm WARN deprecated react-router-redux@5.0.0-alpha.9: This project is no longer maintained.
20.56 npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
20.93 npm WARN deprecated @stylelint/postcss-css-in-js@0.38.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
21.14 npm WARN deprecated dommatrix@1.0.3: dommatrix is no longer maintained. Please use @thednp/dommatrix.
21.70 npm WARN deprecated @floating-ui/react-dom-interactions@0.3.1: Package renamed to @floating-ui/react
22.33 npm WARN deprecated intl-messageformat-parser@3.6.4: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
22.41 npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
23.03 npm WARN deprecated @formatjs/intl-utils@2.3.0: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package
29.08 npm WARN deprecated @formatjs/intl-unified-numberformat@3.3.7: We have renamed the package to @formatjs/intl-numberformat
30.51
30.51 > postinstall
30.51 > umi setup
30.51
31.72 info - [你知道吗?] umi g component 可以快速生成组件模板,详见 https://umijs.org/docs/guides/generator#组件生成器
31.72 info - generate files
32.32 info - Preparing...
32.56 info - [icons] generate icons local:google, local:github
33.99
33.99 > prepare
33.99 > cd .. && husky web/.husky
33.99
34.03 .git can't be found
34.05 added 2312 packages in 34s
34.05
34.05 25 packages are looking for funding
34.05 run `npm fund` for details
34.05 npm notice
34.05 npm notice New minor version of npm available! 10.5.0 -> 10.8.1
34.05 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.1>
34.05 npm notice Run `npm install -g npm@10.8.1` to update!
34.05 npm notice
34.28
34.28 > build
34.28 > umi build
34.28
35.48 info - [你知道吗?] 如果你需要增加 Git 提交消息校验和自动代码格式化, umi g precommit 就可以一键完成配置,详见 https://umijs.org/docs/guides/generator#precommit-配置生成器
35.48 info - Umi v4.2.3
36.10 info - Preparing...
36.33 info - [icons] generate icons local:google, local:github
37.44 ℹ Compiling Webpack
43.06 [BABEL] Note: The code generator has deoptimised the styling of /ragflow/web/src/assets/svg/login-avatars.svg as it exceeds the max of 500KB.
66.84 v Webpack: Compiled with some errors in 29.41s
66.85 info - Memory Usage: 1901.51 MB (RSS: 2448.66 MB)
66.85 fatal - Error: ERROR in ./src/pages/flow/list/hooks.ts 10:0-46
66.85 Module not found: Error: Can't resolve '../../../../../dls.json' in '/ragflow/web/src/pages/flow/list'
66.85 @ ./src/pages/flow/list/index.tsx 5:0-59 10:21-32 16:29-48
66.85 @ ./src/.umi-production/core/route.tsx
66.85 @ ./src/.umi-production/umi.ts 10:0-41 27:17-26
66.85
66.85 webpack compiled with 1 error
66.85 at handler (/ragflow/web/node_modules/@umijs/bundler-webpack/dist/build.js:82:79)
66.85 at finalCallback (/ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62945:32)
66.85 at /ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62962:13
66.85 at Hook.eval [as callAsync] (eval at create (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:35:1)
66.85 at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:4851)
66.85 at onCompiled (/ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62960:21)
66.85 at /ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:63704:17
66.85 at _next0 (eval at create (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:16:1)
66.85 at eval (eval at create (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:26:1)
66.85 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
67.61 fatal - A complete log of this run can be found in:
67.61 fatal - /ragflow/web/node_modules/.cache/logger/umi.log
67.61 fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues
------
Dockerfile:7
--------------------
5 |
6 | ADD ./web ./web
7 | >>> RUN cd ./web && npm i --force && npm run build
8 |
9 | ADD ./api ./api
--------------------
ERROR: failed to solve: process "/bin/sh -c cd ./web && npm i --force && npm run build" did not complete successfully: exit code: 1
$
Fixed.
I am also facing a similar issue when building the Docker images from source.
Steps to reproduce
git clone https://github.com/infiniflow/ragflow.git cd ragflow/ docker build -t infiniflow/ragflow:dev .
Output:
$ docker build -t infiniflow/ragflow:dev . [+] Building 192.2s (7/16) docker:default [+] Building 192.4s (7/16) docker:default [+] Building 192.5s (7/16) docker:default [+] Building 192.7s (7/16) docker:default [+] Building 192.8s (7/16) docker:default [+] Building 192.8s (7/16) docker:default [+] Building 193.0s (7/16) docker:default [+] Building 193.1s (7/16) docker:default [+] Building 193.2s (7/16) docker:default [+] Building 193.4s (7/16) docker:default [+] Building 193.5s (7/16) docker:default [+] Building 193.7s (7/16) docker:default [+] Building 193.8s (7/16) docker:default [+] Building 194.0s (7/16) docker:default [+] Building 194.1s (7/16) docker:default [+] Building 194.3s (7/16) docker:default [+] Building 194.4s (7/16) docker:default [+] Building 194.5s (7/16) docker:default [+] Building 196.0s (7/16) docker:default [+] Building 196.1s (7/16) docker:default [+] Building 196.3s (7/16) docker:default [+] Building 196.4s (7/16) docker:default [+] Building 196.6s (7/16) docker:default [+] Building 196.6s (7/16) docker:default [+] Building 196.7s (7/16) docker:default [+] Building 196.8s (7/16) docker:default [+] Building 197.0s (7/16) docker:default [+] Building 197.1s (7/16) docker:default [+] Building 197.3s (7/16) docker:default [+] Building 197.4s (7/16) docker:default [+] Building 197.6s (7/16) docker:default [+] Building 197.7s (7/16) docker:default [+] Building 197.9s (7/16) docker:default [+] Building 197.9s (7/16) docker:default [+] Building 198.1s (7/16) docker:default [+] Building 198.2s (7/16) docker:default [+] Building 198.4s (7/16) docker:default [+] Building 198.5s (7/16) docker:default [+] Building 198.7s (7/16) docker:default [+] Building 198.8s (7/16) docker:default [+] Building 199.0s (7/16) docker:default [+] Building 199.1s (7/16) docker:default [+] Building 199.3s (7/16) docker:default [+] Building 199.4s (7/16) docker:default [+] Building 199.6s (7/16) docker:default [+] Building 199.7s (7/16) docker:default [+] Building 199.9s (7/16) docker:default [+] Building 200.0s (7/16) docker:default [+] Building 200.2s (7/16) docker:default [+] Building 200.3s (7/16) docker:default [+] Building 200.5s (7/16) docker:default [+] Building 200.6s (7/16) docker:default [+] Building 200.8s (7/16) docker:default [+] Building 200.9s (7/16) docker:default [+] Building 201.1s (7/16) docker:default [+] Building 201.2s (7/16) docker:default [+] Building 201.4s (7/16) docker:default [+] Building 201.5s (7/16) docker:default [+] Building 201.7s (7/16) docker:default [+] Building 201.8s (7/16) docker:default [+] Building 202.0s (7/16) docker:default [+] Building 202.1s (7/16) docker:default [+] Building 202.3s (7/16) docker:default [+] Building 202.4s (7/16) docker:default [+] Building 202.6s (7/16) docker:default [+] Building 202.7s (7/16) docker:default [+] Building 202.9s (7/16) docker:default [+] Building 203.0s (7/16) docker:default [+] Building 203.2s (7/16) docker:default [+] Building 203.3s (7/16) docker:default [+] Building 203.5s (7/16) docker:default [+] Building 203.5s (7/16) docker:default [+] Building 203.7s (7/16) docker:default [+] Building 203.8s (7/16) docker:default [+] Building 204.0s (7/16) docker:default [+] Building 204.1s (7/16) docker:default [+] Building 204.3s (7/16) docker:default [+] Building 204.4s (7/16) docker:default [+] Building 204.6s (7/16) docker:default [+] Building 204.7s (7/16) docker:default [+] Building 204.9s (7/16) docker:default [+] Building 205.0s (7/16) docker:default [+] Building 205.2s (7/16) docker:default [+] Building 205.3s (7/16) docker:default [+] Building 205.5s (7/16) docker:default [+] Building 205.6s (7/16) docker:default [+] Building 205.8s (7/16) docker:default [+] Building 205.9s (7/16) docker:default [+] Building 206.1s (7/16) docker:default [+] Building 206.2s (7/16) docker:default [+] Building 206.4s (7/16) docker:default [+] Building 206.5s (7/16) docker:default [+] Building 206.7s (7/16) docker:default [+] Building 206.8s (7/16) docker:default [+] Building 207.0s (7/16) docker:default [+] Building 207.1s (7/16) docker:default [+] Building 207.3s (7/16) docker:default [+] Building 207.4s (7/16) docker:default [+] Building 207.6s (7/16) docker:default [+] Building 207.7s (7/16) docker:default [+] Building 207.9s (7/16) docker:default [+] Building 208.0s (7/16) docker:default [+] Building 208.2s (7/16) docker:default [+] Building 208.3s (7/16) docker:default [+] Building 208.5s (7/16) docker:default [+] Building 208.6s (7/16) docker:default [+] Building 208.8s (7/16) docker:default [+] Building 208.9s (7/16) docker:default [+] Building 209.1s (7/16) docker:default [+] Building 209.2s (7/16) docker:default [+] Building 209.4s (7/16) docker:default [+] Building 209.5s (7/16) docker:default [+] Building 209.7s (7/16) docker:default [+] Building 209.8s (7/16) docker:default [+] Building 210.0s (7/16) docker:default [+] Building 210.1s (7/16) docker:default [+] Building 210.3s (7/16) docker:default [+] Building 210.4s (7/16) docker:default [+] Building 210.6s (7/16) docker:default [+] Building 210.7s (7/16) docker:default [+] Building 210.9s (7/16) docker:default [+] Building 211.0s (7/16) docker:default [+] Building 211.2s (7/16) docker:default [+] Building 211.3s (7/16) docker:default [+] Building 211.5s (7/16) docker:default [+] Building 211.6s (7/16) docker:default [+] Building 211.8s (7/16) docker:default [+] Building 211.9s (7/16) docker:default [+] Building 212.1s (7/16) docker:default [+] Building 212.2s (7/16) docker:default [+] Building 212.4s (7/16) docker:default [+] Building 212.5s (7/16) docker:default [+] Building 212.7s (7/16) docker:default [+] Building 212.8s (7/16) docker:default [+] Building 213.0s (7/16) docker:default [+] Building 213.1s (7/16) docker:default [+] Building 213.3s (7/16) docker:default [+] Building 213.4s (7/16) docker:default [+] Building 213.6s (7/16) docker:default [+] Building 213.7s (7/16) docker:default [+] Building 213.9s (7/16) docker:default [+] Building 214.0s (7/16) docker:default [+] Building 214.2s (7/16) docker:default [+] Building 214.3s (7/16) docker:default [+] Building 214.5s (7/16) docker:default [+] Building 214.6s (7/16) docker:default [+] Building 214.8s (7/16) docker:default [+] Building 214.9s (7/16) docker:default [+] Building 215.1s (7/16) docker:default [+] Building 215.2s (7/16) docker:default [+] Building 215.4s (7/16) docker:default [+] Building 215.5s (7/16) docker:default [+] Building 215.7s (7/16) docker:default [+] Building 215.8s (7/16) docker:default [+] Building 216.0s (7/16) docker:default [+] Building 216.1s (7/16) docker:default [+] Building 216.3s (7/16) docker:default [+] Building 216.4s (7/16) docker:default [+] Building 216.6s (7/16) docker:default [+] Building 216.7s (7/16) docker:default [+] Building 216.9s (7/16) docker:default [+] Building 217.0s (7/16) docker:default [+] Building 217.2s (7/16) docker:default [+] Building 217.3s (7/16) docker:default [+] Building 217.5s (7/16) docker:default [+] Building 217.6s (7/16) docker:default [+] Building 217.8s (7/16) docker:default [+] Building 217.9s (7/16) docker:default [+] Building 218.1s (7/16) docker:default [+] Building 218.2s (7/16) docker:default [+] Building 218.4s (7/16) docker:default [+] Building 218.5s (7/16) docker:default [+] Building 218.7s (7/16) docker:default [+] Building 218.8s (7/16) docker:default [+] Building 219.0s (7/16) docker:default [+] Building 219.1s (7/16) docker:default [+] Building 219.3s (7/16) docker:default [+] Building 219.4s (7/16) docker:default [+] Building 219.6s (7/16) docker:default [+] Building 219.7s (7/16) docker:default [+] Building 219.9s (7/16) docker:default [+] Building 220.0s (7/16) docker:default [+] Building 220.2s (7/16) docker:default [+] Building 220.3s (7/16) docker:default [+] Building 220.5s (7/16) docker:default [+] Building 220.6s (7/16) docker:default [+] Building 220.8s (7/16) docker:default [+] Building 220.9s (7/16) docker:default [+] Building 221.1s (7/16) docker:default [+] Building 221.2s (7/16) docker:default [+] Building 221.4s (7/16) docker:default [+] Building 221.5s (7/16) docker:default [+] Building 221.7s (7/16) docker:default [+] Building 221.8s (7/16) docker:default [+] Building 222.0s (7/16) docker:default [+] Building 222.1s (7/16) docker:default [+] Building 222.3s (7/16) docker:default [+] Building 222.4s (7/16) docker:default [+] Building 222.6s (7/16) docker:default [+] Building 222.7s (7/16) docker:default [+] Building 222.9s (7/16) docker:default [+] Building 223.0s (7/16) docker:default [+] Building 223.2s (7/16) docker:default [+] Building 223.3s (7/16) docker:default [+] Building 223.5s (7/16) docker:default [+] Building 223.6s (7/16) docker:default [+] Building 223.8s (7/16) docker:default [+] Building 223.9s (7/16) docker:default [+] Building 224.1s (7/16) docker:default [+] Building 224.2s (7/16) docker:default [+] Building 224.4s (7/16) docker:default [+] Building 224.5s (7/16) docker:default [+] Building 224.7s (7/16) docker:default [+] Building 224.8s (7/16) docker:default [+] Building 225.0s (7/16) docker:default [+] Building 225.1s (7/16) docker:default [+] Building 225.3s (7/16) docker:default [+] Building 225.4s (7/16) docker:default [+] Building 225.6s (7/16) docker:default [+] Building 225.7s (7/16) docker:default [+] Building 225.9s (7/16) docker:default [+] Building 226.0s (7/16) docker:default [+] Building 226.2s (7/16) docker:default [+] Building 226.3s (7/16) docker:default [+] Building 226.5s (7/16) docker:default [+] Building 226.6s (7/16) docker:default [+] Building 226.8s (7/16) docker:default [+] Building 226.9s (7/16) docker:default [+] Building 227.1s (7/16) docker:default [+] Building 227.2s (7/16) docker:default [+] Building 231.0s (8/16) docker:default => [internal] load build definition from Dockerfile 0.1s => => transferring dockerfile: 548B 0.0s => [internal] load metadata for docker.io/infiniflow/ragflow-base:v2.0 0.6s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [ 1/12] FROM docker.io/infiniflow/ragflow-base:v2.0@sha256:6c1e68bd7c957bf2efa6147305a06eac589d7474b431a16df50906b730f18711 157.7s => => resolve docker.io/infiniflow/ragflow-base:v2.0@sha256:6c1e68bd7c957bf2efa6147305a06eac589d7474b431a16df50906b730f18711 0.0s => => sha256:d66d6a6a368713979f9d00fad193991ae1af18b8efd3abf4d70ade192807c1bd 30.45MB / 30.45MB 0.8s => => sha256:fb395f539ec6e8ddb515fc2cf3699ed73944c1a038af68b16a0c05346a1201b1 521.28MB / 521.28MB 12.9s => => sha256:6c1e68bd7c957bf2efa6147305a06eac589d7474b431a16df50906b730f18711 4.94kB / 4.94kB 0.0s => => sha256:6106e44c0c7925ed2e2696d20f1123a4555f3a0b029dec0afad28073d2cd338b 6.57kB / 6.57kB 0.0s => => sha256:e969618d45ccd60fd2873407a92683ec6b01569489fe40e7571141a2726660a4 97B / 97B 0.2s => => sha256:7458993558132a96511c06938d6e2cac61ef32af0c130eb11a95a418798dd1ed 2.11MB / 2.11MB 0.4s => => sha256:0dc03a7cf05707341f082b50f21b25ce6b9a8f6d1c011b50d773f52c94e1f8ad 5.86MB / 5.86MB 0.6s => => sha256:aa273b3a17bcfb9d7ba649c0c89de6e2c98a59f0520bd82b24ffd8b8aeab8e61 1.37kB / 1.37kB 0.7s => => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.8s => => extracting sha256:d66d6a6a368713979f9d00fad193991ae1af18b8efd3abf4d70ade192807c1bd 0.5s => => sha256:fb2ab1ff9d833009b8a5cda6a305076998f5cfadb0be4f6f7a7de28035cf7377 1.32kB / 1.32kB 0.9s => => sha256:d06f23c2cbe14d5a3b82bdfedc421da8a48ea0217f03c3621e16118b6065ec63 7.11GB / 7.11GB 109.2s => => sha256:eb68fb06a9a7cc37f7700b186fdb3c1d27d11cec4417aca7d668326e1239202f 38.50MB / 38.50MB 2.2s => => extracting sha256:e969618d45ccd60fd2873407a92683ec6b01569489fe40e7571141a2726660a4 0.0s => => sha256:d163a8b4330507adb25256b78b89cf3c050dc23053307ad51f82939a648e7b2f 597.50kB / 597.50kB 2.3s => => sha256:69e195eb397c1090d723310bf7b2b832d3aae6af6658fa112979653a25dad03f 81.47MB / 81.47MB 4.9s => => sha256:7b21f5823e9bbe766476f0b4d97d5ba82fd829d9d7dea84bb342d7fc8b8e9621 129B / 129B 5.0s => => sha256:e98de0bf142d0b1d7b402d905a55e7072068b260c0883bf9d9948fc7e17525e6 785.20kB / 785.20kB 5.2s => => sha256:ec80654f9e2963d282c272318a232bd9471a33b21fde792da8698ad2a08eb5cc 145.02MB / 145.02MB 9.9s => => sha256:7d8c25b345431c96ec68c04146b11df0ee256cda60f31ec7f1e459d16fc43235 728.67kB / 728.67kB 10.1s => => sha256:b64db2d044cf8e0023caf26fc0b38ef3ec0530042f2ff1271d7bc3c9d095913f 6.95MB / 6.95MB 10.4s => => sha256:a9e42bf6c6eb85329ef00940dda8e54a97dd6b4068d9b329dc82e7de357ca869 197.12MB / 197.12MB 14.7s => => extracting sha256:fb395f539ec6e8ddb515fc2cf3699ed73944c1a038af68b16a0c05346a1201b1 7.8s => => sha256:ccae0efba7a7c2782f68c2d2c24c7247d4a4fd0478b16538d387ca7093be64bf 982.78kB / 982.78kB 13.0s => => sha256:a2ef789c33fcacad1bf52567c4c0114faeadb7ad2261e3be20aeb5dd719697b7 1.04MB / 1.04MB 13.1s => => sha256:ae33b309d29d372b25b6512182d74fcd5d47e143a84763dacb34ea2e977faa8c 302.56kB / 302.56kB 13.3s => => extracting sha256:7458993558132a96511c06938d6e2cac61ef32af0c130eb11a95a418798dd1ed 0.0s => => extracting sha256:0dc03a7cf05707341f082b50f21b25ce6b9a8f6d1c011b50d773f52c94e1f8ad 0.2s => => extracting sha256:aa273b3a17bcfb9d7ba649c0c89de6e2c98a59f0520bd82b24ffd8b8aeab8e61 0.0s => => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s => => extracting sha256:fb2ab1ff9d833009b8a5cda6a305076998f5cfadb0be4f6f7a7de28035cf7377 0.0s => => extracting sha256:d06f23c2cbe14d5a3b82bdfedc421da8a48ea0217f03c3621e16118b6065ec63 41.6s => => extracting sha256:eb68fb06a9a7cc37f7700b186fdb3c1d27d11cec4417aca7d668326e1239202f 0.2s => => extracting sha256:d163a8b4330507adb25256b78b89cf3c050dc23053307ad51f82939a648e7b2f 0.1s => => extracting sha256:69e195eb397c1090d723310bf7b2b832d3aae6af6658fa112979653a25dad03f 1.1s => => extracting sha256:7b21f5823e9bbe766476f0b4d97d5ba82fd829d9d7dea84bb342d7fc8b8e9621 0.0s => => extracting sha256:e98de0bf142d0b1d7b402d905a55e7072068b260c0883bf9d9948fc7e17525e6 0.0s => => extracting sha256:ec80654f9e2963d282c272318a232bd9471a33b21fde792da8698ad2a08eb5cc 1.4s => => extracting sha256:7d8c25b345431c96ec68c04146b11df0ee256cda60f31ec7f1e459d16fc43235 0.0s => => extracting sha256:b64db2d044cf8e0023caf26fc0b38ef3ec0530042f2ff1271d7bc3c9d095913f 0.5s => => extracting sha256:a9e42bf6c6eb85329ef00940dda8e54a97dd6b4068d9b329dc82e7de357ca869 1.8s => => extracting sha256:ccae0efba7a7c2782f68c2d2c24c7247d4a4fd0478b16538d387ca7093be64bf 0.0s => => extracting sha256:a2ef789c33fcacad1bf52567c4c0114faeadb7ad2261e3be20aeb5dd719697b7 0.1s => => extracting sha256:ae33b309d29d372b25b6512182d74fcd5d47e143a84763dacb34ea2e977faa8c 0.0s => [internal] load build context 12.9s => => transferring context: 52.83MB 12.9s => [ 2/12] WORKDIR /ragflow 1.9s => [ 3/12] ADD ./web ./web 0.1s => ERROR [ 4/12] RUN cd ./web && npm i --force && npm run build 70.5s ------ > [ 4/12] RUN cd ./web && npm i --force && npm run build: 0.432 npm WARN using --force Recommended protections disabled. 19.95 npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated 19.96 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated 20.09 npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead 20.14 npm WARN deprecated @types/testing-library__jest-dom@6.0.0: This is a stub types definition. @testing-library/jest-dom provides its own type definitions, so you do not need this installed. 20.14 npm WARN deprecated @types/history@5.0.0: This is a stub types definition. history provides its own type definitions, so you do not need this installed. 20.18 npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility 20.23 npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash. 20.31 npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead 20.35 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated 20.48 npm WARN deprecated react-router-redux@5.0.0-alpha.9: This project is no longer maintained. 20.56 npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated 20.93 npm WARN deprecated @stylelint/postcss-css-in-js@0.38.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. 21.14 npm WARN deprecated dommatrix@1.0.3: dommatrix is no longer maintained. Please use @thednp/dommatrix. 21.70 npm WARN deprecated @floating-ui/react-dom-interactions@0.3.1: Package renamed to @floating-ui/react 22.33 npm WARN deprecated intl-messageformat-parser@3.6.4: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser 22.41 npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. 23.03 npm WARN deprecated @formatjs/intl-utils@2.3.0: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package 29.08 npm WARN deprecated @formatjs/intl-unified-numberformat@3.3.7: We have renamed the package to @formatjs/intl-numberformat 30.51 30.51 > postinstall 30.51 > umi setup 30.51 31.72 info - [你知道吗?] umi g component 可以快速生成组件模板,详见 https://umijs.org/docs/guides/generator#组件生成器 31.72 info - generate files 32.32 info - Preparing... 32.56 info - [icons] generate icons local:google, local:github 33.99 33.99 > prepare 33.99 > cd .. && husky web/.husky 33.99 34.03 .git can't be found 34.05 added 2312 packages in 34s 34.05 34.05 25 packages are looking for funding 34.05 run `npm fund` for details 34.05 npm notice 34.05 npm notice New minor version of npm available! 10.5.0 -> 10.8.1 34.05 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.1> 34.05 npm notice Run `npm install -g npm@10.8.1` to update! 34.05 npm notice 34.28 34.28 > build 34.28 > umi build 34.28 35.48 info - [你知道吗?] 如果你需要增加 Git 提交消息校验和自动代码格式化, umi g precommit 就可以一键完成配置,详见 https://umijs.org/docs/guides/generator#precommit-配置生成器 35.48 info - Umi v4.2.3 36.10 info - Preparing... 36.33 info - [icons] generate icons local:google, local:github 37.44 ℹ Compiling Webpack 43.06 [BABEL] Note: The code generator has deoptimised the styling of /ragflow/web/src/assets/svg/login-avatars.svg as it exceeds the max of 500KB. 66.84 v Webpack: Compiled with some errors in 29.41s 66.85 info - Memory Usage: 1901.51 MB (RSS: 2448.66 MB) 66.85 fatal - Error: ERROR in ./src/pages/flow/list/hooks.ts 10:0-46 66.85 Module not found: Error: Can't resolve '../../../../../dls.json' in '/ragflow/web/src/pages/flow/list' 66.85 @ ./src/pages/flow/list/index.tsx 5:0-59 10:21-32 16:29-48 66.85 @ ./src/.umi-production/core/route.tsx 66.85 @ ./src/.umi-production/umi.ts 10:0-41 27:17-26 66.85 66.85 webpack compiled with 1 error 66.85 at handler (/ragflow/web/node_modules/@umijs/bundler-webpack/dist/build.js:82:79) 66.85 at finalCallback (/ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62945:32) 66.85 at /ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62962:13 66.85 at Hook.eval [as callAsync] (eval at create (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:35:1) 66.85 at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:4851) 66.85 at onCompiled (/ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:62960:21) 66.85 at /ragflow/web/node_modules/@umijs/bundler-webpack/compiled/webpack/index.js:63704:17 66.85 at _next0 (eval at create (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:16:1) 66.85 at eval (eval at create (/ragflow/web/node_modules/@umijs/bundler-webpack/node_modules/@umijs/bundler-utils/compiled/tapable/index.js:1:7682), <anonymous>:26:1) 66.85 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 67.61 fatal - A complete log of this run can be found in: 67.61 fatal - /ragflow/web/node_modules/.cache/logger/umi.log 67.61 fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues ------ Dockerfile:7 -------------------- 5 | 6 | ADD ./web ./web 7 | >>> RUN cd ./web && npm i --force && npm run build 8 | 9 | ADD ./api ./api -------------------- ERROR: failed to solve: process "/bin/sh -c cd ./web && npm i --force && npm run build" did not complete successfully: exit code: 1 $
hope this helpful: https://github.com/infiniflow/ragflow/blob/main/docs/references/faq.md#12-process-binsh--c-cd-web--npm-i--npm-run-build-failed
Is there an existing issue for the same bug?
Branch name
main
Commit ID
25c4c71
Other environment information
No response
Actual behavior
When I am attempting to start from source using the latest code (25c4c71), task executer and api server functions well, but the frontend failed to load, reporting absence of file dls.json:
The broswer is showing the same error as well:
Expected behavior
No response
Steps to reproduce
Additional information
I wonder if it was my fault when pulling code that makes this file go missing, or the file was simply ignored when committing by the committer. How can I solve it? Thanks a lot for anyone who reply to this ;)