From 3981dfa2ed5b8fa1b31552b2e96ecd4eef538ed6 Mon Sep 17 00:00:00 2001
From: Premas <prema.cse11@gmail.com>
Date: Thu, 7 Nov 2024 19:44:17 +0000
Subject: [PATCH]

---
 Dockerfile | 45 +++++----------------------------------------
 1 file changed, 5 insertions(+), 40 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 17d362a..496379f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -23,7 +23,6 @@ RUN apt-get update && apt-get install -y \
     python3.9 \
     python3.9-dev \
     python3.9-venv \
-    python3-pip \
     git \
     libegl1-mesa \
     libgles2-mesa \
@@ -58,66 +57,32 @@ RUN apt-get update && apt-get install -y \
     zip \
     && rm -rf /var/lib/apt/lists
 
-#RUN add-apt-repository ppa:beineri/opt-qt-6.2.0-bionic
 RUN apt-get update
 RUN apt-get install -y qt6-base-dev
 
-#RUN apt-get update && apt-get install -y \
- #   build-essential \
-  #  libxcb-xinerama0 \
-   # libxcb1 \
-    #qt5-qmake \
-    #qtbase5-dev \
-    #qtchooser \
-    #qtbase5-dev-tools \
-    #libxcb1-dev \
-    #libssl-dev \
-    #sip-dev \
-    #&& apt-get clean
-
-#RUN apt-get update && apt-get install -y \
- #   xvfb \
-  #  && apt-get clean
-#RUN apt-get update && apt-get install -y libgl1-mesa-glx libxkbcommon0 && apt-get clean
-#RUN pip install --upgrade pip
-#RUN pip install tf-slim
-# Set python3.9 as the default python version
 RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
 
 # Verify Python installation
 RUN python3 --version
-# Upgrade pip to the latest version
-#RUN pip install --upgrade pip
-# Install git
-#RUN apt-get update 
-#&& apt-get install -y git
 
 # Clone the DeepLabCut repository
 RUN git clone https://github.com/DeepLabCut/DeepLabCut.git
 
 # Change the working directory to DeepLabCut
 WORKDIR /app/DeepLabCut
+RUN git checkout v2.3.8
+
 RUN python3 -m venv deepenv
 
 
 # Upgrade pip within the virtual environment
-RUN pip install --upgrade pip
+RUN /app/DeepLabCut/deepenv/bin/pip install --upgrade pip
 
 RUN /app/DeepLabCut/deepenv/bin/pip install wheel
 # Install compatible versions of numpy and typing-extensions
 RUN /app/DeepLabCut/deepenv/bin/pip install numpy==1.24.3 typing-extensions==4.5.0
-#RUN /app/DeepLabCut/deepenv/bin/pip install deeplabcut[gui]==2.3.8
-# Install dependencies within the virtual environment
 RUN /app/DeepLabCut/deepenv/bin/pip install -r requirements.txt
-RUN /app/DeepLabCut/deepenv/bin/pip install deeplabcut[gui]==2.3.8
-#RUN /app/DeepLabCut/deepenv/bin/pip install .["gui"]
-# Install PyQt5 and Qt5 for graphical user interfaces
-#RUN /app/DeepLabCut/deepenv/bin/pip install pyqt5==5.15.9 matplotlib==3.4.3
-# Install PySide6 version 6.2.4 (compatible with DeepLabCut)
-#RUN /app/DeepLabCut/deepenv/bin/pip install pyside6
-#RUN pip install .["gui"]
-# Create a virtual environment and activate it
-
+#RUN /app/DeepLabCut/deepenv/bin/pip install deeplabcut[gui]==2.3.8
+RUN /app/DeepLabCut/deepenv/bin/pip install .["gui"]
 
-# Install dependencies
 ENTRYPOINT ["/bin/bash"]
-- 
GitLab