Dockerfile for releasing Phoenix applications

Recently, I wrote 2 Dockerfiles for releasing Phoenix applications. It helps me to build docker image in very convenient way:


  • 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!