Skip to content

Commit 8e056c3

Browse files
authored
Update Dockerfile
some input from Mohammad
1 parent 3c4ad2e commit 8e056c3

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
FROM condaforge/miniforge3:24.9.2-0
1+
FROM condaforge/miniforge3:25.11.0-0
22

3-
ARG APPS_DIR=/usr/local
3+
#ARG APPS_DIR=/usr/local
4+
RUN useradd -ms /bin/bash student
5+
USER student
6+
WORKDIR /home/student
7+
ARG APPS_DIR=/home/student
48
RUN conda create -y --name geant --channel=conda-forge geant4 root=6.30 cmake make
59
RUN conda clean --all -y
610

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

913
ARG VMC_DIR=$APPS_DIR/vmc
1014
RUN mkdir $VMC_DIR
11-
RUN git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
15+
RUN git clone --depth 1 http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
1216
cd $VMC_DIR/git_source && \
1317
git checkout v2-0 && \
1418
cd .. && \
@@ -23,9 +27,8 @@ RUN git clone http://github.com/vmc-project/vmc.git $VMC_DIR/git_source && \
2327

2428
ARG VGM_DIR=$APPS_DIR/vgm
2529
RUN mkdir $VGM_DIR
26-
RUN git clone http://github.com/vmc-project/vgm.git $VGM_DIR/git_source && \
30+
RUN git clone --depth 1 --branch v5-2 http://github.com/vmc-project/vgm.git $VGM_DIR/git_source && \
2731
cd $VGM_DIR/git_source && \
28-
git checkout v5-2 && \
2932
cd .. && \
3033
mkdir build && \
3134
cd build && \
@@ -37,9 +40,8 @@ RUN git clone http://github.com/vmc-project/vgm.git $VGM_DIR/git_source && \
3740

3841
ARG GEANT4_VMC_DIR=$APPS_DIR/geant4_vmc
3942
RUN mkdir $GEANT4_VMC_DIR
40-
RUN git clone http://github.com/vmc-project/geant4_vmc.git $GEANT4_VMC_DIR/git_source && \
43+
RUN git clone --depth 1 --branch v6-6-p2 http://github.com/vmc-project/geant4_vmc.git $GEANT4_VMC_DIR/git_source && \
4144
cd $GEANT4_VMC_DIR/git_source && \
42-
git checkout v6-6-p2 && \
4345
cd .. && \
4446
mkdir build && \
4547
cd build && \

0 commit comments

Comments
 (0)