We all know there is a bit of strategy when creating Dockerfiles to reduce size & increase efficiency. One (basic) practice I have come to terms with is writing my RUN commands with bash sets which has helped in quick debugging on failed builds. I thought I’d share to compare with other people’s habitual formats.
RUN bash -xec "command 1 \
&& command 2 \
&& ..."