我尝试从 Dockerfile 构建映像,但收到此错误:
/bin/sh: 1: -E: not found
The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | -E bash -' returned a non-zero code: 127.
Run Code Online (Sandbox Code Playgroud)
我得到它是因为 Dockerfile 中的以下行:
RUN install curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | -E bash -
Run Code Online (Sandbox Code Playgroud)