Skip to content

Dockerfiles: semicolon ignores errors

Using semicolon in the RUN scripts is a logic error. It ignores all previous errors from the command chain, and continues building an incomplete image.

Interestingly, this was already correct in the third Dockerfile (build.centos7.staticdeps.dev.dockerfile), but not in the other 2.

Merge request reports