Creating a shell script to install and dependencies which could be run using docker command

Excellent explanation. Thanks. This answers the question I had: how do you decide if some setup steps are in a Dockerfile vs. a Bash script file.