Skip to content

Commit b3f780f

Browse files
authored
Update Dockerfile
1 parent a8f1de6 commit b3f780f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dockerfiles/arm64/Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ RUN apt-get update \
1313

1414
# add and enable the default user
1515
ARG USER=ithacafv
16-
ARG of_var="source /opt/OpenFOAM-v2106/etc/bashrc"
17-
ARG ithaca_var="source /opt/ITHACA-FV/etc/bashrc"
1816
RUN adduser --disabled-password --gecos '' $USER
1917
RUN adduser $USER sudo; echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
2018

@@ -23,6 +21,11 @@ WORKDIR /opt/
2321
RUN git clone https://github.com/mathLab/ITHACA-FV.git
2422
RUN chown -R $USER:$USER OpenFOAM-v2106 OpenFOAM-v2106 ITHACA-FV
2523
RUN chown -R $USER:$USER /home/$USER
24+
ARG of_var="source /opt/OpenFOAM-v2106/etc/bashrc"
25+
ARG ithaca_var="source /opt/ITHACA-FV/etc/bashrc"
26+
#Update bashrc
27+
RUN echo $of_var >> /etc/bash.bashrc
28+
RUN echo $ithaca_var >> /etc/bash.bashrc
2629
USER $USER
2730
ENV HOME /home/$USER
2831
ENV USER $USER
@@ -31,9 +34,6 @@ RUN /bin/bash -c "source OpenFOAM-v2106/etc/bashrc && \
3134
cd ITHACA-FV && git submodule update --init && source etc/bashrc && \
3235
./Allwmake -au -j 4";
3336

34-
#Update bashrc
35-
RUN echo $of_var >> /etc/bash.bashrc
36-
RUN echo $ithaca_var >> /etc/bash.bashrc
3737

3838
#Source bashrc
3939
RUN /bin/bash -c "source /etc/bash.bashrc"

0 commit comments

Comments
 (0)