Skip to content

docker build编译报错 #1160

Closed
Closed
@itq5

Description

@itq5

例行检查

  • [x ] 我已确认目前没有类似 issue
  • [x ] 我已完整查看过项目 README,以及项目文档
  • [x ] 我使用了自己的 key,并确认我的 key 是可正常使用的
  • [x ] 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本
4.7

  • 公有云版本
  • [x ] 私有部署版本, 具体版本号:
    4.7

问题描述
docker build编译报错
复现步骤
docker build -t fastgpt --build-arg name=app .
预期结果

相关截图
.../[email protected]/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../[email protected]/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../[email protected]/node_modules/canvas install: node-pre-gyp info using [email protected] .../[email protected]/node_modules/canvas install: node-pre-gyp info using [email protected] | linux | arm64 .../[email protected]/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 .../[email protected]/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 .../[email protected]/node_modules/canvas install: node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v108 ABI, musl) (falling back to source compile with node-gyp) .../[email protected]/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 .../[email protected]/node_modules/canvas install: gyp info it worked if it ends with ok .../[email protected]/node_modules/canvas install: gyp info using [email protected] .../[email protected]/node_modules/canvas install: gyp info using [email protected] | linux | arm64 .../[email protected]/node_modules/canvas install: gyp info ok .../[email protected]/node_modules/canvas install: gyp info it worked if it ends with ok .../[email protected]/node_modules/canvas install: gyp info using [email protected] .../[email protected]/node_modules/canvas install: gyp info using [email protected] | linux | arm64 .../[email protected]/node_modules/canvas install: gyp ERR! find Python .../[email protected]/node_modules/canvas install: gyp ERR! find Python Python is not set from command line or npm configuration .../[email protected]/node_modules/canvas install: gyp ERR! find Python Python is not set from environment variable PYTHON

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions