Docker – Sourcing ~/.bashrc doesn't source included script
I've a Docker image that installs rvm. In the Dockerfile, I append the following lines to the ~/.bashrc of the user. export PATH="$PATH:$HOME/.rvm/bin" source "$HOME/.rvm/scripts/rvm" I also make bash act as the login shell. SHELL ["/bin/bash", "-lc"] Later, I create…