I have just upgraded my app to use Elixir 1.5 and now I am trying to deploy it. We deploy using convox V2 (known as praxis) and this requires a Dockerfile at the project root. Currently the first line of my Dockerfile is:
However, since my mix.exs file specifies elixir 1.5.0, I would also like to use a 1.5.0 Dockerfile. However, just changing the first line of my Dockerfile to:
is not working for me. I get the error:
manifest for elixir:1.5.0 not found
How can I get a Dockerfile that will work for me?
It seems like it’s not yet available.
However, you might not want to use the official Elixir docker image since it is based on Ubuntu and so you have a huge image for deployment.
Check out @bitwalker’s
alpine-elixir image which is also available for 1.5.0:
Thanks what do I put in the “FROM” line to use this image?
All you need is
Shameless self plug: I also host an elixir image: https://hub.docker.com/r/leifg/elixir/tags/
Including 1.5.1 and edge version (latest master of erlang and elixir).
The official Docker images have
alpine versions too don’t they?
@msaraiva used to maintain alpine-based Erlang and Elixir images. It now seems abandoned, but @aeons made a fork that keeps it up-to-date. The latest one has 1.5.0.