Skip to content

Commit

Permalink
use init an activate in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
stadie authored Dec 2, 2024
1 parent 0e2fee2 commit 5b0eab5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 5b0eab5

Please sign in to comment.