-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.12 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
# Forked from: https://github.com/kxxoling/jupyter-clojure-docker
FROM ubuntu:16.04
MAINTAINER Ben Denham
ENV WORKING_PATH $HOME/src
ENV PORT 8888
ENV CLOJUPYTER_PATH $HOME/clojupyter
ENV LEIN_ROOT=1
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0xb8d7f7791716c8a4
RUN echo "deb http://ppa.launchpad.net/mikegedelman/leiningen-git-stable/ubuntu trusty main" >> /etc/apt/sources.list
RUN echo "deb-src http://ppa.launchpad.net/mikegedelman/leiningen-git-stable/ubuntu trusty main" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -yq python-setuptools \
git \
python-dev \
build-essential \
curl \
default-jre \
leiningen
RUN lein self-install
# Install Jupyter
RUN mkdir -p $WORKING_PATH
RUN easy_install pip
RUN pip install jupyter
# Install clpjupyter
RUN mkdir $CLOJUPYTER_PATH
RUN git clone https://github.com/clojupyter/clojupyter.git $CLOJUPYTER_PATH
WORKDIR $CLOJUPYTER_PATH
RUN make
RUN make install
WORKDIR $WORKING_PATH
RUN rm -rf $CLOJUPYTER_PATH
EXPOSE $PORT
VOLUME $WORKING_PATH
CMD jupyter notebook --ip='*' --allow-root --NotebookApp.token=''