From efebf600533a1d780f3151bd64e247c865bfc9a4 Mon Sep 17 00:00:00 2001
From: Tru Huynh <tru@pasteur.fr>
Date: Thu, 2 Mar 2023 23:03:16 +0100
Subject: [PATCH] + cleanup, remove artefact

---
 .gitlab-ci.yml | 3 ---
 Dockerfile     | 3 ++-
 Singularity    | 3 ++-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d76b6a2..8aa8401 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,6 +22,3 @@ singularity:
     - singularity build singularity.sif Singularity
     - ls -lh singularity.sif
     - singularity push --docker-username "${CI_REGISTRY_USER}" --docker-password "${CI_REGISTRY_PASSWORD}" singularity.sif oras://"$CI_REGISTRY_IMAGE":latest
-  artifacts:
-    paths:
-    - singularity.sif
diff --git a/Dockerfile b/Dockerfile
index 9e77a04..ad13a0a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,7 +13,8 @@ RUN	curl https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/r
 	conda create --name py310-pytorch-1.13.1 --file conda-list--explicit.yml && \
 	eval "$(conda shell.bash hook)"  && \
 	conda activate py310-pytorch-1.13.1  && \
-	conda list --explicit > /conda-list--explicit.yml
+	conda list --explicit > /conda-list--explicit.yml && \
+	conda clean --all --yes
 
 ADD https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/raw/main/runscript.sh /runscript.sh
 RUN chmod 755 /runscript.sh
diff --git a/Singularity b/Singularity
index 725a8b5..71eeed4 100644
--- a/Singularity
+++ b/Singularity
@@ -15,7 +15,8 @@ curl https://gitlab.pasteur.fr/tru/miniconda3-python310-pytorch-cuda11.7/-/raw/m
 	conda create --name py310-pytorch-1.13.1 --file conda-list--explicit.yml && \
 	eval "$(conda shell.bash hook)"  && \
 	conda activate py310-pytorch-1.13.1  && \
-	conda list --explicit > /conda-list--explicit.yml
+	conda list --explicit > /conda-list--explicit.yml && \
+	conda clean --all --yes
 
 %post
 eval "$(conda shell.bash hook)"  && \
-- 
GitLab