-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
35 lines (30 loc) · 1.1 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
FROM jupyter/minimal-notebook:e7000ca1416d
USER root
# Erlang
# Install Erlang Solutions repository
RUN apt-get update && \
apt-get install -y gnupg2 curl apt-utils && \
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \
dpkg -i erlang-solutions_1.0_all.deb && \
rm erlang-solutions_1.0_all.deb && \
apt-get update && \
apt-get install -y erlang elixir && \
mix local.hex --force && \
mix local.rebar --force
COPY / ierl_repo
RUN chown $NB_USER -R ierl_repo
USER $NB_USER
RUN git clone ierl_repo ierl && \
cd ierl && \
mkdir /home/$NB_USER/.ierl && \
mix deps.get && \
# Build lfe explicitly for now
(cd deps/lfe && ~/.mix/rebar3 compile) && \
(cd apps/ierl && env MIX_ENV=prod mix escript.build) && \
cp apps/ierl/ierl /home/$NB_USER/.ierl/ierl.escript && \
chmod +x /home/$NB_USER/.ierl/ierl.escript && \
/home/$NB_USER/.ierl/ierl.escript install erlang --user && \
/home/$NB_USER/.ierl/ierl.escript install lfe --user && \
/home/$NB_USER/.ierl/ierl.escript install elixir --user && \
cd .. && \
rm -rf ierl ierl_repo