Fix: ensure git prompt helper is sourced in the default user's .bashrc
All checks were successful
Build Docker Image / build (push) Successful in 1m21s
All checks were successful
Build Docker Image / build (push) Successful in 1m21s
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user