forked from underworldcode/UWGeodynamics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 903 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 underworldcode/underworld2:2.8.1b
USER root
# Badlands dependency
RUN pip3 install --no-cache-dir pandas \
ez_setup \
tribad \
git+https://github.com/awickert/gFlex.git \
git+https://github.com/matplotlib/legacycontour.git \
git+https://github.com/matplotlib/cmocean.git \
colorlover matplotlib
WORKDIR /opt
# Compile and install pyBadlands
RUN git clone https://github.com/rbeucher/pyBadlands_serial.git pyBadlands &&\
cd pyBadlands/pyBadlands/libUtils && \
make && \
cd /opt && \
pip3 install --no-cache-dir -e pyBadlands && \
rm -rf pyBadlands/Examples
USER jovyan
ENV PATH $PATH:/opt/pyBadlands/pyBadlands/libUtils
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/opt/pyBadlands/pyBadlands/libUtils
WORKDIR /home/jovyan
CMD ["jupyter", "notebook", "--ip='0.0.0.0'", "--no-browser"]