Last active
August 29, 2015 14:06
-
-
Save sndwch/b04362917f001b7cc84d to your computer and use it in GitHub Desktop.
Hacker's Elixir. Builds Erlang R17.1 w/ Elixir, installs build-essential, git, make, sets up vim with Vundle and installs Vundle plugins
This file contains 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 phusion/baseimage:0.9.13 | |
ENV HOME /root | |
RUN /etc/my_init.d/00_regen_ssh_host_keys.sh | |
CMD ["/sbin/my_init"] | |
RUN apt-get update && apt-get install -y wget vim build-essential unzip git make | |
RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
RUN dpkg -i erlang-solutions_1.0_all.deb | |
RUN apt-get update && apt-get install -y erlang | |
RUN rm erlang-solutions_1.0_all.deb | |
RUN locale-gen en_US.UTF-8 | |
RUN touch .bashrc | |
RUN echo "export LANG=en_US.UTF-8" >> .bashrc | |
RUN echo "export LANGUAGE=en_US:en" >> .bashrc | |
RUN echo "export LC_ALL=en_US.UTF-8" >> .bashrc | |
ENV LANG en_US.UTF-8 | |
ENV LANGUAGE en_US:en | |
ENV LC_ALL en_US.UTF-8 | |
RUN git clone https://github.com/elixir-lang/elixir.git /root/elixir | |
WORKDIR /root/elixir | |
RUN make clean test | |
RUN make install INSTALL_PATH=/usr/local/lib/elixir | |
RUN rm -rf elixir | |
WORKDIR /root | |
RUN wget https://gist.githubusercontent.com/sndwch/58b5c49aa45c768cddcd/raw/924a02e80376d67f1680ab4ad8273558cdd6fcf3/.vimrc | |
RUN git clone https://github.com/gmarik/Vundle.vim.git .vim/bundle/Vundle.vim | |
RUN vim +PluginInstall +qall | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment