From 8e1195eb1ac093f3d1cf7a4ecce651c8da24c804 Mon Sep 17 00:00:00 2001 From: marc1uk Date: Thu, 8 Feb 2024 00:41:45 +0000 Subject: [PATCH] Update Dockerfile add `git checkout -- .` to Dockerfile run command as `make update` does not do this for the main TA repository*, and if there are outstanding changes, the built code will not be the latest. Also swap chaining commands with `;` to using `&&` as all steps should be completed successfully. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index dac7ff16f..cbdd664f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM anniesoft/toolanalysis:base ### Run the following commands as super user (root): USER root -Run cd ToolAnalysis; bash -c "source Setup.sh; make update; make;" +Run cd ToolAnalysis; bash -c "source Setup.sh && git checkout -- . && make update && make" ### Open terminal CMD ["/bin/bash"]