Recently, I wrote 2 Dockerfile
s for releasing Phoenix applications. It helps me to build docker image in very convenient way:
Features:
- take advantage of multi-staged building provided by Docker
- take advantage of the cache provided by Docker
- follow the DRY principle
- provide arguments to apply Dockerfile in very convenient way:
project_name
Feel free to use them, or give me some feedback! Have fun!