Skip to content

Instantly share code, notes, and snippets.

@orotemo
Created July 8, 2015 11:47
Show Gist options
  • Save orotemo/4acbc9f3f0a089d411ad to your computer and use it in GitHub Desktop.
Save orotemo/4acbc9f3f0a089d411ad to your computer and use it in GitHub Desktop.
docker to build erlang releases
FROM ubuntu:trusty
RUN apt-get update && apt-get -y upgrade && apt-get -y install wget && apt-get -y install git
RUN cd /tmp; wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb
RUN apt-get update && apt-get -y install erlang erlang-base-hipe build-essential
RUN git clone https://github.com/rebar/rebar3 && cd rebar3 && ./bootstrap && \
cp rebar3 /usr/bin
WORKDIR /code
CMD rebar3 update && rebar3 as prod tar relup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment