From 2713e8bb930572b86a342289f79f958bdcb0aa8c Mon Sep 17 00:00:00 2001
From: xyliu <xyliu@fhi-berlin.mpg.de>
Date: Sat, 3 Aug 2019 13:05:34 +0200
Subject: [PATCH] fix bug

---
 notebook/Dockerfile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/notebook/Dockerfile b/notebook/Dockerfile
index 2fe35482..c0e3d388 100644
--- a/notebook/Dockerfile
+++ b/notebook/Dockerfile
@@ -205,7 +205,9 @@ COPY 3rdparty/nfft-3.5.0 .
 
 USER root
 RUN chown -R $NB_USER:$NB_GID $PWD
-RUN /bin/bash install.sh
+RUN . $CONDA_DIR/etc/profile.d/conda.sh \
+ && conda activate python2 \ 
+ && /bin/bash install.sh
 USER $NB_USER
 
 # ================================================================================
@@ -217,7 +219,9 @@ COPY 3rdparty/libspimage .
 
 USER root
 RUN chown -R $NB_USER:$NB_GID $PWD
-RUN /bin/bash install.sh
+RUN . $CONDA_DIR/etc/profile.d/conda.sh \
+ && conda activate python2 \
+ && /bin/bash install.sh
 USER $NB_USER
 
 # ================================================================================
@@ -229,7 +233,9 @@ COPY 3rdparty/spsim .
 
 USER root
 RUN chown -R $NB_USER:$NB_GID $PWD
-RUN /bin/bash install.sh
+RUN . $CONDA_DIR/etc/profile.d/conda.sh \
+ && conda activate python2 \ 
+ && /bin/bash install.sh
 USER $NB_USER
 
 # ================================================================================
-- 
GitLab