docker-erlang/R16/Dockerfile

47 lines
1.3 KiB
Docker
Raw Normal View History

2014-09-26 04:26:24 +00:00
FROM debian:jessie
MAINTAINER Correl Roush <correl@gmail.com>
ENV OTP_VERSION R16B03-1
ENV REBAR_VERSION 2.5.1
2015-04-16 18:27:39 +00:00
ENV RELX_VERSION v1.2.0
2014-09-26 04:26:24 +00:00
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update -qq \
&& apt-get install -y \
build-essential \
git \
libncurses5-dev \
openssl \
libssl-dev \
fop \
xsltproc \
unixodbc-dev
ADD http://erlang.org/download/otp_src_${OTP_VERSION}.tar.gz /usr/src/
RUN cd /usr/src \
&& tar xf otp_src_${OTP_VERSION}.tar.gz \
&& cd otp_src_${OTP_VERSION} \
&& ./configure \
&& make \
&& make install \
&& cd / && rm -rf /usr/src/otp_src_${OTP_VERSION}
2014-09-26 04:26:24 +00:00
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
2014-09-26 04:26:24 +00:00
RUN cd /usr/src \
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
&& cd rebar-${REBAR_VERSION} \
2014-09-26 04:26:24 +00:00
&& make \
&& cp rebar /usr/bin/rebar \
&& cd / && rm -rf /usr/src/rebar-${REBAR_VERSION}
2014-09-26 04:26:24 +00:00
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
2014-09-26 04:26:24 +00:00
RUN cd /usr/src \
&& tar zxf relx-${RELX_VERSION}.tar.gz \
2014-12-12 16:21:01 +00:00
&& cd relx-${RELX_VERSION#v} \
2014-09-26 04:26:24 +00:00
&& make \
&& cp relx /usr/bin/relx \
2014-12-12 16:21:01 +00:00
&& cd / && rm -rf /usr/src/relx-${RELX_VERSION#v}
2014-09-26 04:26:24 +00:00
CMD ["erl"]