S2I builder image for Phoenix applications
344

At this point in time - Aug. 8, 2019 - the majority of the Phoenix s2i builder images I've seen around on Dockerhub are either really out-dated OR (inclusive or btw) just plain don't work. So, I decided to make my own.
This image is pretty simple, and uses the official Elixir Alpine docker image as its base rather than the openshift/base-centos7 image. As a result, it's actually much smaller than the aforementioned OpenShift base image.
Source:
https://github.com/sansarip/phoenix-builder
Pull the image docker pull sansarip/phoenix-builder
Given you have the s2i executable available to you which you can find here, then you can simply run
s2i build <your phoenix app dir> sansarip/phoenix-builder <app name>
All set! You've now generated a new Docker image with your src code embedded in it, and you can run it with docker run -it -p 4000:4000 <app name>
Your application should be listening on port 4000 now. Go get 'em, champ!
If you expect your final application to accept runtime env vars, then you should pull the image with theruntime-env tag; this version of the builder image will recompile your app on each run, thereby accepting Docker runtime env vars.
Content type
Image
Digest
Size
64.3 MB
Last updated
about 7 years ago
docker pull sansarip/phoenix-builder