Skip to content

Commit

Permalink
redefine shell to use conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
stadie authored Dec 2, 2024
1 parent 4aa6d9a commit 17c0af7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
FROM condaforge/miniforge3:24.9.2-0

SHELL ["/bin/bash", "-c"]
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

SHELL ["conda", "run", "-n", "geant", "/bin/bash", "-c"]

ARG VMC_DIR=$APPS_DIR/vmc
RUN . ~/.bashrc
conda activate geant && \
git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
RUN git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
cd $VMC_DIR && \
git checkout v2-0 && \
mkdir build && \
cd build && \
cmake -DCMAKE_INSTALL_PREFIX=$VMC_DIR $VMC_DIR/git_source && \
make -j4 && \
maken install && \
make install && \
rm -rf build git_source


0 comments on commit 17c0af7

Please sign in to comment.