Dockerfile Instruction
There is an Docker syntax that you need to follow while writting the dockerfile as shown below:
INSTRUCTION arguments
Most frequently used instructions in dockerfile are as follows:
- FROM
- RUN
- ADD
- ENV
- ENTRYPOINT
- CMD
This are the some of the instructions which are regularly used in dockerfile to know more about the syntax of dockerfile refer to What is Dockerfile Syntax?.
How to Run a Python Script using Docker?
Docker helps you to run your python application very smoothly in different environments with out worrying about underlying platforms. Once you build an image using dockerfile you can run that image where ever you want to run. Docker image will help you to package all the dependencies required for the application which will used for further while running the container.