-
Notifications
You must be signed in to change notification settings - Fork 37
/
DockerfileDev
80 lines (70 loc) · 1.83 KB
/
DockerfileDev
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
FROM continuumio/miniconda3
LABEL maintainer="[email protected]"
#This docker image has been adapted from the lavavu dockerfile
# install things
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
gcc \
g++ \
libc-dev \
gfortran \
openmpi-bin \
libopenmpi-dev \
make
# RUN conda install -c conda-forge python=3.9 -y
RUN conda install -c conda-forge "python<=3.9" \
pip \
scikit-learn \
cython \
numpy \
pandas \
scipy \
pymc3 \
jupyter \
pyamg \
# arviz==0.11.0 \
pygraphviz \
geopandas \
shapely \
ipywidgets \
ipyleaflet \
folium \
jupyterlab \
nodejs \
rasterio\
-y
RUN pip install ipyfilechooser
RUN jupyter nbextension enable --py --sys-prefix ipyleaflet
RUN pip install lavavu-osmesa==1.8.32 pyevtk
ENV NB_USER jovyan
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
WORKDIR ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
RUN pip install snakeviz
# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
USER ${NB_USER}
RUN mkdir notebooks
RUN git clone https://github.com/Loop3D/LoopStructural.git
RUN git clone https://github.com/Loop3D/map2loop-2.git map2loop
RUN git clone https://github.com/Loop3D/LoopProjectFile.git
RUN git clone https://github.com/TOMOFAST/Tomofast-x.git
RUN pip install -e LoopStructural
RUN pip install -e map2loop
RUN pip install -e LoopProjectFile
# WORKDIR Tomofast-x
# RUN make
WORKDIR ${HOME}
# RUN pip install -e LoopStructural
CMD ["jupyter", "notebook", "--ip='0.0.0.0'", "--NotebookApp.token=''", "--no-browser" ]
EXPOSE 8050
EXPOSE 8080:8090