Last active
December 22, 2015 07:19
-
-
Save betawaffle/6437463 to your computer and use it in GitHub Desktop.
Dockerfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Andrew Hodges "[email protected]" | |
ENV REFRESHED_AT 2013-09-04 | |
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y git build-essential | |
RUN apt-get install -y libncurses5-dev openssl libssl-dev curl | |
# For HiPE, requires M4 | |
RUN apt-get install -y m4 | |
RUN mkdir -p /opt/erlang/ | |
RUN curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl | |
RUN mv kerl /opt/erlang/ | |
RUN ln -s /opt/erlang/kerl /usr/local/bin/kerl | |
RUN kerl update releases | |
ENV ERLANG_VERSION R16B01 | |
RUN KERL_CONFIGURE_OPTIONS=--enable-hipe kerl build $ERLANG_VERSION $ERLANG_VERSION | |
RUN kerl install $ERLANG_VERSION /opt/erlang/$ERLANG_VERSION | |
RUN ln -s /opt/erlang/$ERLANG_VERSION /opt/erlang/current | |
RUN cd /usr/local/bin && find /opt/erlang/current/bin -exec ln -s '{}' \; | |
ENV ELIXIR_VERSION 0.10.2 | |
## Install Elixir | |
RUN cd /opt/erlang && git clone https://github.com/elixir-lang/elixir.git | |
RUN cd /opt/erlang/elixir && git checkout v$ELIXIR_VERSION && make && make install | |
ENTRYPOINT ["iex"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment