例行检查
你的版本
4.7
问题描述
docker build编译报错
复现步骤
docker build -t fastgpt --build-arg name=app .
预期结果
相关截图
.../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.11 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.20.1 | linux | arm64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-arm64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-arm64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@18.20.1 (node-v108 ABI, musl) (falling back to source compile with node-gyp) .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-arm64.tar.gz .../canvas@2.11.2/node_modules/canvas install: gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: gyp info using node-gyp@9.3.1 .../canvas@2.11.2/node_modules/canvas install: gyp info using node@18.20.1 | linux | arm64 .../canvas@2.11.2/node_modules/canvas install: gyp info ok .../canvas@2.11.2/node_modules/canvas install: gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: gyp info using node-gyp@9.3.1 .../canvas@2.11.2/node_modules/canvas install: gyp info using node@18.20.1 | linux | arm64 .../canvas@2.11.2/node_modules/canvas install: gyp ERR! find Python .../canvas@2.11.2/node_modules/canvas install: gyp ERR! find Python Python is not set from command line or npm configuration .../canvas@2.11.2/node_modules/canvas install: gyp ERR! find Python Python is not set from environment variable PYTHON
例行检查
你的版本
4.7
4.7
问题描述
docker build编译报错
复现步骤
docker build -t fastgpt --build-arg name=app .预期结果
相关截图
.../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.11 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.20.1 | linux | arm64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-arm64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-arm64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@18.20.1 (node-v108 ABI, musl) (falling back to source compile with node-gyp) .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-musl-arm64.tar.gz .../canvas@2.11.2/node_modules/canvas install: gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: gyp info using node-gyp@9.3.1 .../canvas@2.11.2/node_modules/canvas install: gyp info using node@18.20.1 | linux | arm64 .../canvas@2.11.2/node_modules/canvas install: gyp info ok .../canvas@2.11.2/node_modules/canvas install: gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: gyp info using node-gyp@9.3.1 .../canvas@2.11.2/node_modules/canvas install: gyp info using node@18.20.1 | linux | arm64 .../canvas@2.11.2/node_modules/canvas install: gyp ERR! find Python .../canvas@2.11.2/node_modules/canvas install: gyp ERR! find Python Python is not set from command line or npm configuration .../canvas@2.11.2/node_modules/canvas install: gyp ERR! find Python Python is not set from environment variable PYTHON