From 8550754806afef7587aca0c1702b7067e24409bc Mon Sep 17 00:00:00 2001
From: Mohammad Firas Sada <mfsada@ucsd.edu>
Date: Wed, 6 Nov 2024 20:13:34 -0800
Subject: [PATCH] Update file Dockerfile

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

diff --git a/Dockerfile b/Dockerfile
index 9e11cde..c107dcf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -51,6 +51,7 @@ RUN apt-get update && apt-get install -y \
     libxext6 \
     xvfb && \
     apt-get clean && rm -rf /var/lib/apt/lists/*
+
 # Add the ubuntu user, create directories, and give permissions
 RUN useradd -m -s /bin/bash ubuntu && \
     mkdir -p /home/ubuntu/.local/share/jupyter/runtime && \
@@ -60,7 +61,8 @@ RUN useradd -m -s /bin/bash ubuntu && \
 # Install Selkies in /opt/selkies directory
 RUN export SELKIES_VERSION="$(curl -fsSL "https://api.github.com/repos/selkies-project/selkies-gstreamer/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g')" && \
     echo "SELKIES_VERSION=${SELKIES_VERSION}" && \
-    curl -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies-gstreamer-portable-v${SELKIES_VERSION}_amd64.tar.gz" | tar -xzf - && \
+    mkdir -p /opt/selkies-gstreamer && \
+    curl -fsSL "https://github.com/selkies-project/selkies-gstreamer/releases/download/v${SELKIES_VERSION}/selkies-gstreamer-portable-v${SELKIES_VERSION}_amd64.tar.gz" | tar -xzf - -C /opt/selkies-gstreamer && \
     chmod +x /opt/selkies-gstreamer/selkies-gstreamer-run && \
     chown -R ubuntu:ubuntu /opt/selkies-gstreamer
 
@@ -68,7 +70,6 @@ RUN ls -l /opt/selkies-gstreamer
 
 RUN echo "SELKIES_VERSION=${SELKIES_VERSION}"
 
-
 # Grant sudo privileges to the ubuntu user
 RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
 
-- 
GitLab