Interview Prep/Docker/Dockerfile Instructions & Builds

What does `SHELL` do?

AdvancedConceptDockerfile Instructions & Builds
Answer

It changes the default shell used for shell-form instructions (default ["/bin/sh","-c"]). A common use is enabling pipefail so a failing curl | tar breaks the build:

SHELL ["/bin/bash", "-o", "pipefail", "-c"]
All Docker questions Roadmap: Docker & containers

More on Dockerfile Instructions & Builds