Docker /bin/sh:复制:找不到命令

emo*_*ssi 3 command docker dockerfile

我尝试运行以下命令:

RUN if [ "$someargs" = "AAA" ]; then COPY from/ /usr/local/; fi
Run Code Online (Sandbox Code Playgroud)

我收到这个错误:This command returned a non-zero code: 127

use*_*097 7

你不能做,在一个

跑步

一个 Dockerfile

复制

您需要找到另一种方法,您可能有一个脚本可以根据您的测试创建不同的 Dockerfile。