我正在创建一个Dockerfile。我已经将Python解压缩后的protobuf-3.3.0文件夹包含在与Dockerfile相同的目录中。 protobuf文件夹中有一个名为configure
的二进制文件,完全适用于我的(非Docker)主机。Docker找不到配置文件
我在Dockerfile下面几行:
WORKDIR /protobuf-3.3.0
RUN ./configure && make && make install
然而,这将导致以下致命错误:
Step 4/13 : WORKDIR protobuf-3.3.0
---> 077ec08916d7
Removing intermediate container 50647f3aa6d7
Step 5/13 : RUN ./configure && make && make install
---> Running in 2d6f8446cdd9
/bin/sh: 1: ./configure: not found
为什么?!?据this answer,我在我的Dockerfile中是完全正确的。我也试过版本here,但结果是一样的。
显示整个Dockerfile – user2915097