Skip to content

Commit 04c1f48

Browse files
Update Dockerfile
Adjusted dockerfile as error raised from untracked PLATFORM file
1 parent 5c8141b commit 04c1f48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ MAINTAINER Edward Smith <[email protected]>
99
# Check if CPL library needs to be updated, this is required as cplopenfoam
1010
# will contain an old version of CPL library and this can easily be updated
1111
WORKDIR /cpl-library
12-
RUN git pull && \
12+
RUN git fetch --all && \
13+
git reset --hard origin/master && \
1314
make PLATFORM=gcc clean && \
1415
make PLATFORM=gcc
1516

1617
#We need to update the app to the latest code, patch OpenFOAM and build solvers
1718
WORKDIR $APP_DIR
18-
RUN git pull
19+
RUN git fetch --all && \
20+
git reset --hard origin/master
1921
RUN /bin/bash -c "source SOURCEME.sh && \
2022
make clean && \
2123
make pstream && \

0 commit comments

Comments
 (0)