From 123c733c955e3d5a3607102459a33c37e7aa52c4 Mon Sep 17 00:00:00 2001
From: "Thirgood, Christopher T (PG/R - Comp Sci & Elec Eng)"
 <ct00659@surrey.ac.uk>
Date: Tue, 14 Nov 2023 15:36:35 +0000
Subject: [PATCH] python 3.9?

---
 Dockerfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index c01b883..68f16c1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -56,7 +56,7 @@ ENV PATH="$WRKSPCE/miniconda3/bin:${PATH}"
 RUN conda update -c defaults conda
 
 # Create the environment and install all the requirements
-RUN conda create -n segment_anything_env python=3.8 -y && \
+RUN conda create -n segment_anything_env python=3.9 -y && \
     conda init bash && \
     echo "conda activate segment_anything_env" >> ~/.bashrc
 
@@ -67,8 +67,8 @@ SHELL ["conda", "run", "-n", "segment_anything_env", "/bin/bash", "-c"]
 RUN pip install setuptools==60.9.3 && \
     git clone https://github.com/facebookresearch/segment-anything.git && \
     cd segment-anything && pip install -e . && \
-    pip install opencv-python pycocotools matplotlib onnxruntime onnx && \ 
-    conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch    
+    conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch && \     
+    pip install opencv-python pycocotools matplotlib onnxruntime onnx 
 #conda install pytorch torchvision torchaudio cudatoolkit=11.2 -c pytorch -c nvidia
     #conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch
 
-- 
GitLab