Skip to content

Commit 49de51e

Browse files
committed
fix: dockerfile python version
1 parent d0de548 commit 49de51e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RUN apt-get update -qq && \
1313
libopenmpi-dev \
1414
make
1515
# RUN conda install -c conda-forge python=3.9 -y
16-
RUN conda install -c conda-forge -c loop3d pip \
16+
RUN conda install -c conda-forge -c loop3d python=3.9\
17+
pip \
1718
map2model\
1819
hjson\
1920
owslib\
@@ -41,11 +42,13 @@ RUN conda install -c conda-forge -c loop3d pip \
4142
folium \
4243
jupyterlab \
4344
nodejs \
45+
rasterio\
46+
geopandas\
4447
-y
4548

4649
RUN pip install ipyfilechooser
4750
RUN jupyter nbextension enable --py --sys-prefix ipyleaflet
48-
RUN pip install lavavu-osmesa geostatspy mplstereonet
51+
RUN pip install lavavu-osmesa=1.8.32 geostatspy mplstereonet
4952

5053
ENV NB_USER jovyan
5154
ENV NB_UID 1000
@@ -80,6 +83,7 @@ RUN pip install -e LoopProjectFile
8083
# WORKDIR Tomofast-x
8184
# RUN make
8285
WORKDIR ${HOME}/notebooks
86+
8387
# RUN pip install -e LoopStructural
8488
CMD ["jupyter", "lab", "--ip='0.0.0.0'", "--NotebookApp.token=''", "--no-browser" ]
8589

DockerfileDev

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ RUN apt-get update -qq && \
1313
libopenmpi-dev \
1414
make
1515
# RUN conda install -c conda-forge python=3.9 -y
16-
RUN conda install -c conda-forge pip \
16+
RUN conda install -c conda-forge "python<=3.9" \
17+
pip \
1718
scikit-learn \
1819
cython \
1920
numpy \
@@ -31,11 +32,12 @@ RUN conda install -c conda-forge pip \
3132
folium \
3233
jupyterlab \
3334
nodejs \
35+
rasterio\
3436
-y
3537

3638
RUN pip install ipyfilechooser
3739
RUN jupyter nbextension enable --py --sys-prefix ipyleaflet
38-
RUN pip install lavavu-osmesa
40+
RUN pip install lavavu-osmesa==1.8.32 pyevtk
3941

4042
ENV NB_USER jovyan
4143
ENV NB_UID 1000

0 commit comments

Comments
 (0)