From 67eb1ee97e4848ad335ff95a4e71f58c66b0f2f3 Mon Sep 17 00:00:00 2001
From: "Mulas, Giacomo" <gmulas@oa-cagliari.inaf.it>
Date: Fri, 19 Jan 2024 10:36:08 +0100
Subject: [PATCH] clean up minimal docker image to run the code, which is now
 installed under /usr/local/np-tmcode

---
 containers/docker/Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/containers/docker/Dockerfile b/containers/docker/Dockerfile
index df111106..1157a744 100644
--- a/containers/docker/Dockerfile
+++ b/containers/docker/Dockerfile
@@ -44,6 +44,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt update && DEBIAN_FRONTEND=noninteractive
 COPY --from=np-tmcode-run-dev /root /root
 # remove everything which is not needed to run the codes
 RUN cd /root/np-tmcode && find build -name "*.o" -exec rm -v \{\} \; && find build -name "*.gcno" -exec rm -v \{\} \; && cd src && rm -rvf cluster libnptm trapping include sphere Makefile make.inc README.md && cd .. && rm -rvf containers && cd doc && rm -rvf src && cd build/latex && rm -rvf *.tex *.out *.sty *.ind *.log *.toc *.ilg *.idx *.aux *.eps Makefile class*.pdf
+# move the installed software to /usr/local
+RUN mv /root/np-tmcode /usr/local
 
 
 # create the container on which the np-tmcode is installed,
-- 
GitLab