-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (26 loc) · 932 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
30
31
32
33
FROM beakerx/beakerx:1.1.0
# Download Lein script
USER root
ADD https://raw.githubusercontent.com/technomancy/leiningen/2.8.1/bin/lein /usr/local/bin/lein
RUN chmod a+rx /usr/local/bin/lein
USER beakerx
# Install lein
RUN /bin/bash -c "source activate beakerx && lein && source deactivate"
# Install Packages
USER root
RUN apt-get update && apt-get install -y \
gcc \
graphviz \
g++ \
texlive-xetex \
&& rm -rf /var/lib/apt/lists/*
USER beakerx
# Install Clojure dependencies
RUN mkdir -p /home/beakerx/hdsm/target
COPY project.clj /home/beakerx/hdsm/project.clj
RUN /bin/bash -c "source activate beakerx && cd /home/beakerx/hdsm/ && lein deps && source deactivate"
# Install Python dependencies
RUN /opt/conda/envs/beakerx/bin/python -m pip install orange3 scipy scikit-posthocs
# Copy across beakerx.json config
COPY beakerx.json /home/beakerx/.jupyter/beakerx.json
WORKDIR /home/beakerx/hdsm/notebooks