-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (43 loc) · 1.13 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:16.04
ENV HOME /root
RUN apt-get update && \
apt-get install -y \
automake \
autoconf \
curl \
git \
libreadline-dev \
libncurses-dev \
libssl-dev \
libyaml-dev \
libxslt-dev \
libffi-dev \
libtool \
make \
unixodbc-dev \
unzip \
wget && \
apt-get clean
# Install asdf
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.3.0
ENV PATH $HOME/.asdf/bin:$HOME/.asdf/shims:$PATH
# Install Erlang
ENV ERLANG_VERSION 20.0
RUN asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git && \
asdf install erlang $ERLANG_VERSION && \
asdf global erlang $ERLANG_VERSION
# Install Elixir
ENV ELIXIR_VERSION 1.5.0-otp-20
RUN asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git && \
asdf install elixir $ELIXIR_VERSION && \
asdf global elixir $ELIXIR_VERSION
# Remove VM locale warning
RUN apt-get install -y locales && \
locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8
# Setup ElixirApp
ENV APP_HOME /var/www
RUN mkdir $APP_HOME
WORKDIR $APP_HOME