I've got a Dockerfile. When building the image, the build fails on this error:
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
which in reality is harmless. The library builds fine, but Docker stops the build once it receives this error. Is there any way I can instruct Docker to just ignore this?
Sure. Docker is just responding to the error codes returned by the
RUN
shell scripts in theDockerfile
. If yourDockerfile
has something like:You could replace that with:
This will always return a
0
(success) exit code. The disadvantage here is that your image will appear to build successfully even if there are actual errors in the build process.