RSS

Shell usage in dockerfile

How to use a proper shell in a dockerfile

The default shell is [“/bin/sh”, “-c”], which doesn’t handle pipe fails when chaining commands. To process errors when using pipes use this :

SHELL ["/bin/bash", "-eux", "-o", "pipefail", "-c"]

References