├── Dockerfile.yml ├── README.md ├── Dockerfile └── Dockerfile.erb /Dockerfile.yml: -------------------------------------------------------------------------------- 1 | elixir_version: 1.1.1 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # janlelis/elixir-only 2 | 3 | A docker base image that installs the latest Elixir(http://elixir-lang.org/) and Erlang(https://www.erlang-solutions.com/downloads/download-erlang-otp). 4 | 5 | Still tweaking around. 6 | 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # # # 2 | # Base Dockerfile for Elixir applications 3 | # # # 4 | 5 | FROM ubuntu:trusty 6 | MAINTAINER Jan Lelis 7 | ENV DEBIAN_FRONTEND noninteractive 8 | 9 | # Ensure locale 10 | RUN apt-get -y update 11 | RUN dpkg-reconfigure locales && \ 12 | locale-gen en_US.UTF-8 && \ 13 | /usr/sbin/update-locale LANG=en_US.UTF-8 14 | ENV LC_ALL en_US.UTF-8 15 | 16 | # Essential packages 17 | RUN apt-get -y update 18 | RUN apt-get -y install wget build-essential git 19 | 20 | # Install Erlang 21 | RUN mkdir /tmp/erlang-build 22 | WORKDIR /tmp/erlang-build 23 | RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 24 | RUN dpkg -i erlang-solutions_1.0_all.deb 25 | RUN apt-get -y update 26 | RUN apt-get -y install erlang 27 | 28 | # Build Elixir 29 | RUN git clone https://github.com/elixir-lang/elixir.git /tmp/elixir-source 30 | WORKDIR /tmp/elixir-source 31 | RUN git checkout v1.1.1 32 | RUN make install 33 | 34 | # Clean Up 35 | WORKDIR / 36 | RUN apt-get clean 37 | RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 38 | -------------------------------------------------------------------------------- /Dockerfile.erb: -------------------------------------------------------------------------------- 1 | # # # 2 | # Base Dockerfile for Elixir applications 3 | # # # 4 | 5 | FROM ubuntu:trusty 6 | MAINTAINER Jan Lelis 7 | ENV DEBIAN_FRONTEND noninteractive 8 | 9 | # Ensure locale 10 | RUN apt-get -y update 11 | RUN dpkg-reconfigure locales && \ 12 | locale-gen en_US.UTF-8 && \ 13 | /usr/sbin/update-locale LANG=en_US.UTF-8 14 | ENV LC_ALL en_US.UTF-8 15 | 16 | # Essential packages 17 | RUN apt-get -y update 18 | RUN apt-get -y install wget build-essential git 19 | 20 | # Install Erlang 21 | RUN mkdir /tmp/erlang-build 22 | WORKDIR /tmp/erlang-build 23 | RUN wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb 24 | RUN dpkg -i erlang-solutions_1.0_all.deb 25 | RUN apt-get -y update 26 | RUN apt-get -y install erlang 27 | 28 | # Build Elixir 29 | RUN git clone https://github.com/elixir-lang/elixir.git /tmp/elixir-source 30 | WORKDIR /tmp/elixir-source 31 | RUN git checkout v<%= elixir_version %> 32 | RUN make install 33 | 34 | # Clean Up 35 | WORKDIR / 36 | RUN apt-get clean 37 | RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 38 | --------------------------------------------------------------------------------