Ensure 'RUN' shell command has pipefail flag

Risk Level: medium
Platform: Docker
Spectral Rule ID: DOCKR051

REMEDIATION

Add the pipefail flag -o to the RUN shell command

FROM ubuntu:22.10
+ RUN /bin/bash -o pipefail
RUN /bin/bash ./my-awesome-script-1 | ./my-awesome-script-2

Read more: