From e914d14ef6794460f4482cabf3a4f21b55f3dea2 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Tue, 8 Apr 2025 14:26:47 -0700 Subject: [PATCH] Use execlineb --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0cf1f082..5a813a62d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,11 +76,14 @@ RUN set -eux \ && rm ./*.tar.xz \ && rm ./*.sha256 \ && echo "Configuring Bash to see container environment" \ - && echo '#!/bin/sh' > /tmp/bash-wrapper \ - && echo 'exec /command/with-contenv /bin/bash.original "$@"' >> /tmp/bash-wrapper \ + && echo '#!/bin/execlineb -P' > /tmp/bash-wrapper \ + && echo '/command/with-contenv' >> /tmp/bash-wrapper \ + && echo '/usr/bin/bash' >> /tmp/bash-wrapper \ + && echo 'importas -i ARGS @' >> /tmp/bash-wrapper \ + && echo '$ARGS' >> /tmp/bash-wrapper \ && chmod +x /tmp/bash-wrapper \ - && cp /bin/bash /bin/bash.original \ - && mv /tmp/bash-wrapper /bin/bash \ + && cp /usr/bin/bash /usr/bin/bash.original \ + && mv /tmp/bash-wrapper /usr/bin/bash \ && echo "Cleaning up image" \ && apt-get --yes purge ${S6_BUILD_TIME_PKGS} \ && apt-get --yes autoremove --purge \