Update dockerfile to install rebar with asdf

This commit is contained in:
Maciej Szlosarczyk 2019-07-15 13:43:29 +03:00
parent 67c710a6e7
commit 23193d612e
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765

View file

@ -54,9 +54,7 @@ WORKDIR /opt/erlang/epp_proxy
COPY .tool-versions ./
RUN asdf plugin-add erlang
RUN asdf install
RUN asdf global erlang $(grep erlang .tool-versions | cut -d' ' -f2)
RUN asdf plugin-add ruby
RUN asdf plugin-add rebar
RUN asdf install
RUN curl https://s3.amazonaws.com/rebar3/rebar3 -o /rebar3
RUN mv /rebar3 /usr/local/bin
RUN chmod +x /usr/local/bin/rebar3