3 ms·
You would have two images, one with all compile time dependencies, sources, etc, which you use to assemble the release, and another image with only the artifact
by josevalim 7y ago
You would have two images, one with all compile time dependencies, sources, etc, which you use to assemble the release, and another image with only the artifact (the release) and none of the rest. Hex (Elixir's package manager) is open source and uses this approach, which you can see here: https://github.com/hexpm/hexpm/blob/d015973e472af59644ee537f809cb004f284139b/Dockerfile#L62:L73 https://github.com/hexpm/hexpm/blob/d015973e472af59644ee537f...