From 4fa2046b5944da0f2375e84045553fde8d057321 Mon Sep 17 00:00:00 2001
From: Niaz Faridani-Rad <tigrexspalterlp@gmail.com>
Date: Mon, 11 Oct 2021 16:10:22 +0200
Subject: [PATCH] Fix conditional

---
 backend/dependencies/Dockerfile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/backend/dependencies/Dockerfile b/backend/dependencies/Dockerfile
index 9ae337f..4cc9fa0 100644
--- a/backend/dependencies/Dockerfile
+++ b/backend/dependencies/Dockerfile
@@ -48,9 +48,8 @@ RUN apt-get update && \
 		unzip && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/*
-
-RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then pip3 install torch torchvision; 
-RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then pip3 install torch torchvision -f https://torch.kmtea.eu/whl/stable.html;
+    
+RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then pip3 install torch torchvision -f https://torch.kmtea.eu/whl/stable.html; else pip3 install torch torchvision;
 
 RUN pip3 install pyvips==2.1.15 cmake==3.21.2
 
-- 
GitLab