forked from Loop3D/LoopStructural
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (42 loc) · 1.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM continuumio/miniconda3
LABEL maintainer="[email protected]"
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
gcc \
g++ \
libc-dev
RUN conda install -c loop3d -c conda-forge map2loop python=3.7 -y
RUN conda install -c conda-forge pip scikit-learn cython numpy==1.20.1 pandas scipy pymc3 jupyter pyamg -y
RUN conda install -c conda-forge ipywidgets
RUN conda install -c conda-forge ipyleaflet
RUN conda install -c conda-forge folium
RUN pip install ipyfilechooser
RUN jupyter nbextension enable --py --sys-prefix ipyleaflet
RUN pip install lavavu-osmesa
COPY LoopStructural LoopStructural
RUN pip install LoopStructural
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 ${NB_USER}
USER root
RUN chown -R ${NB_UID} ${HOME}
RUN conda install -c conda-forge jupyterlab nodejs -y
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
WORKDIR notebooks
# RUN pip install -e LoopStructural
CMD ["jupyter", "notebook", "--ip='0.0.0.0'", "--NotebookApp.token=''", "--no-browser" ]
EXPOSE 8050
EXPOSE 8080:8090