我有一个Dockerfile。在构建镜像时,出现了以下错误导致构建失败:
automake: error: no 'Makefile.am' found for any configure output
Error build: The command [/bin/sh -c aclocal && autoconf && automake -a] returned a non-zero code: 1
实际上是无害的。图书馆构建良好,但是Docker一旦收到此错误就会停止构建。我能否指示Docker忽略这个错误?
service php7-fpm start
时,我来到了这里。它返回1并且运行失败;使用service php7-fpm start; service php7-fpm status
就可以解决问题 - 这似乎也解决了构建过程中的一个问题,因为单独运行这两个命令都会出现问题。 - igorsantos07COPY
而不是RUN
呢?例如,忽略源/目标文件是否存在。 - mohammad hosein bahmani