From ae9bee5325ffcdce9d9b8659017177c35d561564 Mon Sep 17 00:00:00 2001
From: Muhammad-Hazimi-Yusri <mhby1g21@soton.ac.uk>
Date: Mon, 15 Jul 2024 13:14:31 +0100
Subject: [PATCH] Fixed dockerfile build error on line 39 by replacing it with
 checks for manual submodule update

---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index a8ef376..b632086 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,7 +36,8 @@ WORKDIR "/monodepth"
 COPY . ./
 
 # Setup BoostingMonocularDepth
-RUN git submodule update --init
+#RUN git submodule update --init #replaced this line with below
+RUN if [ -d "BoostingMonocularDepth" ]; then echo "Submodule exists"; else echo "Submodule not found" && exit 1; fi
 RUN cd ./BoostingMonocularDepth/pix2pix/ && mkdir -p checkpoints/mergemodel
 # Midas weights
 #RUN wget https://github.com/isl-org/MiDaS/releases/download/v2_1/model-f6b98070.pt -O ./BoostingMonocularDepth/midas/model.pt
-- 
GitLab