Skip to content

Instantly share code, notes, and snippets.

View gaelgthomas's full-sized avatar
🌏
Coding & Exploring Asia 🎒🌏

Gaël Thomas gaelgthomas

🌏
Coding & Exploring Asia 🎒🌏
View GitHub Profile
@gaelgthomas
gaelgthomas / Markdium-shell.sh
Created October 2, 2020 20:51
Markdium-What is a good commit message?
$ git commit -m "Title" -m "Description"
@gaelgthomas
gaelgthomas / main.py
Created March 19, 2019 18:52
Python example for Medium article : "A beginner's guide for Docker - Create your first docker application"
#!/usr/bin/env python3
print("Docker is magic!")
@gaelgthomas
gaelgthomas / Dockerfile
Last active March 19, 2019 18:51
Dockerfile example for Medium article : "A beginner's guide for Docker - Create your first docker application"
# 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.