mirror of
https://github.com/correl/docker-erlang.git
synced 2024-11-25 19:19:53 +00:00
43 lines
1.1 KiB
Docker
43 lines
1.1 KiB
Docker
FROM debian:jessie
|
|
|
|
MAINTAINER Correl Roush <correl@gmail.com>
|
|
|
|
ENV OTP_VERSION R16B03-1
|
|
ENV REBAR_VERSION 2.5.1
|
|
ENV RELX_VERSION 1.1.0-rc1
|
|
|
|
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
|
|
|
|
ADD https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz /usr/src/rebar-${REBAR_VERSION}.tar.gz
|
|
RUN cd /usr/src \
|
|
&& tar zxf rebar-${REBAR_VERSION}.tar.gz \
|
|
&& cd rebar-${REBAR_VERSION} \
|
|
&& make \
|
|
&& cp rebar /usr/bin/rebar
|
|
|
|
ADD https://github.com/erlware/relx/archive/${RELX_VERSION}.tar.gz /usr/src/relx-${RELX_VERSION}.tar.gz
|
|
RUN cd /usr/src \
|
|
&& tar zxf relx-${RELX_VERSION}.tar.gz \
|
|
&& cd relx-${RELX_VERSION} \
|
|
&& make \
|
|
&& cp relx /usr/bin/relx
|
|
|
|
CMD ["erl"]
|