From 67bd358e121f61030077370cda38a398f1af34cd Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 12 Dec 2025 16:50:32 +0100 Subject: [PATCH] fix(docker): enforce bash shell to support pipefail across distros Use bash as the default shell in Docker build stages to ensure `set -euo pipefail` works reliably on all base images, including Ubuntu where /bin/sh does not support pipefail. https://chatgpt.com/share/693c29d9-9b28-800f-a549-5661c783d968 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 908ce53..c51af7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ ARG BASE_IMAGE # - no entrypoint # ============================================================ FROM ${BASE_IMAGE} AS virgin +SHELL ["/bin/bash", "-lc"] RUN echo "BASE_IMAGE=${BASE_IMAGE}" && cat /etc/os-release || true