-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile-code
41 lines (30 loc) · 1016 Bytes
/
Dockerfile-code
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
FROM badlandsmodel/badlands-base:python3
MAINTAINER Tristan Salles
# install extras in a new layer
RUN pip3 install --no-cache-dir plotly \
cmocean \
pyevtk \
colorlover \
netcdf4
# install badlands companion
RUN python3 -m pip install --no-cache-dir badlands-companion==1.0.2
# setup space for working in
VOLUME /live/share
WORKDIR /live
# install badlands workshop, companion and examples
RUN git clone https://github.com/badlands-model/badlands-workshop.git && \
mv badlands-workshop/workshop /live/ && \
mv badlands-workshop/examples /live/ && \
mv badlands-workshop/companion /live/ && \
rm -rf badlands-workshop lib
# install badlands code
RUN python3 -m pip install --no-cache-dir badlands==2.2.1
ENV LD_LIBRARY_PATH=/live/lib/:/live/share
EXPOSE 8888
ENV TINI_VERSION v0.18.0
ENTRYPOINT ["/usr/local/bin/tini", "--"]
EXPOSE 9999
# note we use xvfb which to mimic the X display for lavavu
ENTRYPOINT ["/usr/local/bin/xvfbrun.sh"]
# launch notebook
CMD /usr/local/bin/run-jupyter.sh