From 42c2dd933c8f4ceee348f404e80794831e5d713b Mon Sep 17 00:00:00 2001 From: Slawek Koszewski Date: Wed, 17 Dec 2025 22:20:09 +0100 Subject: [PATCH] Fix: ensure git prompt helper is sourced in the default user's .bashrc --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1068b2d..2b5af66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,12 @@ if ! command -v __git_ps1 > /dev/null; then fi EOF +RUN cat <<'EOF' >> /home/ubuntu/.bashrc +if ! command -v __git_ps1 > /dev/null; then + source /etc/profile.d/git-prompt-helper +fi +EOF + COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]