Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to compiler provider to only build dependencies #1888

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

tsloughter
Copy link
Collaborator

The ability to fetch and build only the dependencies is important for docker layer caching.

With this change an optimal dockerfile for building a release would change to be like:

COPY rebar.config rebar.lock /usr/src/app
RUN rebar3 compile --deps_only

COPY . /usr/src/app
RUN rebar3 as prod tar

@tsloughter tsloughter merged commit 8e0ef83 into erlang:master Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants