qhwa
Dockerize, a small package to help generating Docker images for your Elixir projects
Dockerize - A small hex package for creating Docker images from an Elixir project.
Hi, guys,
I’ve been playing with Elixir and Docker together for some time and today I’d like to share some of my experiences on running Elixir on Docker to the community. This includes:
- Dockerize - the hex package that helps scaffolding
- Two Docker base images: elixir-builder & elixir-runner, used by this package by default.
Also, I wrote a blog post on how to do it manually if you want to build your own stacks.
This is a tiny library and many others may have better solutions, but I think it will provide most of the developers a good start on deployment.
So, please check it if you’re going to de deployments, and don’t hesitate to drop any comment or advice. It will help me improving it definitely.
Thanks!
Most Liked
qhwa
Yes! Alpine is surely amazing. I am a fan of it too but I found that I have to deal with the differences between musl and standard libc. If the library owner uses NIF and doesn’t provide prebuilt binaries, we have to compile it ourselves. Compiling on Alphine today is a bit harder than Debian because musl is not the majority. I’m sure it will get better as Alpine becomes more and more popular.
I picked Alpine because it is super small. But today thanks to Docker layer caching and cloud building, we don’t need to build locally and push to remote, sizing is not a big problem now. making the library smoother to adapt seems more important to me.
qhwa
v1.0.0 released!
- use explicit base Docker images from scratch so developers can have full control
- use Debian instead of Alpine as the system image by default (to trade-off for better maintainability)
- documentation improvements
Welcome to give it a try!
qhwa
Today I released version v1.1.0.
updates:
- support building assets with esbuild in Phoenix 1.6
- some improvements on the usage of
ARGandENVinstructures.
Popular in Announcing
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









