Skip to content

Commit 17c0af7

Browse files
authored
redefine shell to use conda env
1 parent 4aa6d9a commit 17c0af7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
FROM condaforge/miniforge3:24.9.2-0
22

3-
SHELL ["/bin/bash", "-c"]
43
ARG APPS_DIR=/usr/local
54
RUN conda create -y --name geant --channel=conda-forge geant4 root cmake make
65
RUN conda clean --all
7-
RUN conda init
6+
7+
SHELL ["conda", "run", "-n", "geant", "/bin/bash", "-c"]
88

99
ARG VMC_DIR=$APPS_DIR/vmc
10-
RUN . ~/.bashrc
11-
conda activate geant && \
12-
git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
10+
RUN git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
1311
cd $VMC_DIR && \
1412
git checkout v2-0 && \
1513
mkdir build && \
1614
cd build && \
1715
cmake -DCMAKE_INSTALL_PREFIX=$VMC_DIR $VMC_DIR/git_source && \
1816
make -j4 && \
19-
maken install && \
17+
make install && \
2018
rm -rf build git_source
2119

2220

0 commit comments

Comments
 (0)