How to Build and Run Your Docker Image

A MORE PRACTICAL IMAGE Passing your Python code to Python on the command line isn’t how you would normally structure an application, so it isn’t how you want to build an image either. So if you’re going to check your code into source control and run it on a different system, it’s easiest to work […]

A MORE PRACTICAL IMAGE Passing your Python code to Python on the command line isn’t how you would normally structure an application, so it isn’t how you want to build an image either. So if you’re going to check your code into source control and run it on a different system, it’s easiest to work with the folder that contains your Dockerfile and build from there. It will copy in any file, so instead of Python source, you could add jar files, compiled code, or webpages into your image.
Source: CloudBees