hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

If I'm building an Erlang release inside docker, is there a way to avoid downloading (and recompiling?) the dependencies every time? Using rebar3.

I don't necessarily want to mount the local directory in the container, 'cos I might have compiled the deps locally, and I'm using a different Linux (Ubuntu locally, Alpine in the container).

@rogerlipscombe Can you do the fetch/build of dependencies as a separate layer? For example, this Elixir Dockerfile [github.com/mbta/tablespoon/blo] copies only the files needed to fetch/build the dependencies, and then as another layer copies the application files and builds the release.