This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git commit -m "Title" -m "Description" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
print("Docker is magic!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A dockerfile must always start by importing the base image. | |
# We use the keyword 'FROM' to do that. | |
# In our example, we want import the python image. | |
# So we write 'python' for the image name and 'latest' for the version. | |
FROM python:latest | |
# In order to launch our python code, we must import it into our image. | |
# We use the keyword 'ADD' to do that. | |
# The first parameter 'main.py' is the name of the file on the host. | |
# The second parameter '/' is the path where to put the file on the image. |