From a2bcb072527974efdb2ee1e6df05f3350031db12 Mon Sep 17 00:00:00 2001 From: gaelforget Date: Fri, 19 Apr 2024 21:36:47 -0400 Subject: [PATCH] just use mainpath --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06d58aa..257bd85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,8 +39,7 @@ RUN cp ${mainpath}/src/setup.py ${mainpath}/setup.py RUN cp ${mainpath}/src/runpluto.sh ${mainpath}/runpluto.sh RUN cp ${mainpath}/src/Project.toml ${mainpath}/Project.toml -ENV HOM /home/${NB_USER} -RUN echo 'alias julia="${HOM}/.juliaup/bin/julia --project=${HOM}"' >> ~/.bashrc +RUN echo 'alias julia="${mainpath}/.juliaup/bin/julia --project=${mainpath}"' >> ~/.bashrc RUN conda config --env --add channels conda-forge RUN conda config --env --add channels r @@ -50,8 +49,8 @@ RUN conda install octave_kernel texinfo r-irkernel RUN curl -fsSL https://install.julialang.org | sh -s -- --yes -RUN ${HOM}/.juliaup/bin/julia --project=${HOM} -e "import Pkg; Pkg.instantiate();" -RUN ${HOM}/.juliaup/bin/julia --project=${HOM} ${HOM}/src/warmup.jl +RUN ${mainpath}/.juliaup/bin/julia --project=${mainpath} -e "import Pkg; Pkg.instantiate();" +RUN ${mainpath}/.juliaup/bin/julia --project=${mainpath} ${mainpath}/src/warmup.jl ENV MPI_INC_DIR /usr/lib/x86_64-linux-gnu/openmpi/include