From 5b0eab5ce50f29002b9768a95c4f22c25f363d89 Mon Sep 17 00:00:00 2001 From: Hartmut Stadie Date: Mon, 2 Dec 2024 11:11:20 +0100 Subject: [PATCH] use init an activate in one line --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6dbe93..138c2d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,10 @@ FROM condaforge/miniforge3:24.9.2-0 ARG APPS_DIR=/usr/local RUN conda create -y --name geant --channel=conda-forge geant4 root cmake make RUN conda clean --all -RUN conda init -RUN conda activate geant ARG VMC_DIR=$APPS_DIR/vmc -RUN git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \ +RUN conda init && conda activate geant && \ + git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \ cd $VMC_DIR && \ git checkout v2-0 && \ mkdir build && \