forked from v9n/relang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (20 loc) · 964 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:trusty
MAINTAINER Vinh <[email protected]>
RUN apt-get update && apt-get -y upgrade && apt-get -y install wget
# RethinkDB
RUN source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list
RUN wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add -
RUN apt-get -y update
RUN apt-get -y install rethinkdb
# Erlang dependencies
RUN apt-get install -y libwxgtk2.8 libwxgtk2.8-dev
RUN touch /ver2
RUN apt-get install -y git
RUN cd /tmp; wget http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_3_general/esl-erlang_18.0-1~ubuntu~trusty_amd64.deb && \
dpkg -i esl-erlang_18.0-1~ubuntu~trusty_amd64.deb
# @TODO Consider to use hipe
RUN apt-get update && apt-get -y install erlang erlang-base build-essential
# Rebar
RUN git clone git://github.com/rebar/rebar.git
RUN cd rebar ; ./bootstrap; cp rebar /usr/bin
CMD ["/bin/bash -l"]