Hello,
The goal here was to run a simple python program inside a container. The code happened to to be a script of Machine Learning. I have already trained the model and saved it as 'profit_predictor.pkl' and I have saved the one hot encoder in the 'state_ohe.pkl'. Here I am just using them to perform predictions using these models.
So the docker container would run, take data as input, predict (train / create dashboards /etc..), and terminate the container.