Skip to content

A minimal Docker image based on AlpineLinux.org able to run Elixir applications

License

Notifications You must be signed in to change notification settings

aweiker/alpine-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir on Alpine Linux

This dockerfile is meant to provide a container to run your application in production. There are other examples out there that put the entire code base in the container and run it. This container is instead designed to take the compiled output of just the exrm release and run that. This will allow for a smaller container that is being run in production.

Getting Started

Please refer to my getting started guide that I wrote as a part of my drone-with-elixir starter kit. If you run into any issues, please file an issue or get ahold of me on twitter @a_weiker.

Example Dockerfile

Please set APP_NAME to the correct name of your application and make sure that APP_VERSION has the correct value.

FROM aweiker/alpine-elixir:latest
ENV PORT=4000 MIX_ENV=prod

ENV APP_NAME=hello_phoenix APP_VERSION="0.0.1"

WORKDIR /$APP_NAME
ADD rel/$APP_NAME .

EXPOSE $PORT

CMD trap exit TERM; /$APP_NAME/bin/$APP_NAME foreground & wait

Inspirations and Acknowledgements

About

A minimal Docker image based on AlpineLinux.org able to run Elixir applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages