From 101c8ec2e7db901a1924a7b5b8b5e37d264b39d8 Mon Sep 17 00:00:00 2001 From: Kayos Date: Wed, 29 Apr 2026 17:16:43 +0000 Subject: [PATCH] =?UTF-8?q?Dockerfile:=20SHELL=20[/bin/bash]=20before=20Sw?= =?UTF-8?q?ift=20layer=20=E2=80=94=20fixes=20${var//pattern}=20bash-ism=20?= =?UTF-8?q?that=20dash=20chokes=20on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7caf20b..11cd1ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -90,6 +90,11 @@ ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \ DOTNET_NOLOGO=1 # ============================================================ +# Switch to bash for the bash-ism layers below (${var//pattern} etc). +# Layers above (apt base / Node / Go / .NET) only use POSIX so they cached fine +# under dash; SHELL is set here to invalidate the cache for layer 6+ only. +SHELL ["/bin/bash", "-c"] + # 5. Swift (Ubuntu 22.04 tarball — works on Debian bookworm # because bookworm ships the right libicu/libstdc++ baseline) # ============================================================