From 27db3192d2a0ae0ae560888fcead1838fa90b8ef Mon Sep 17 00:00:00 2001
From: Hadrien Patte <hadrien.patte@protonmail.com>
Date: Thu, 19 Dec 2024 02:18:52 +0100
Subject: [PATCH] Use upstream chisel-releases for jellyfin

---
 images/jellyfin/Dockerfile | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/images/jellyfin/Dockerfile b/images/jellyfin/Dockerfile
index 9d68b7d..13010bd 100644
--- a/images/jellyfin/Dockerfile
+++ b/images/jellyfin/Dockerfile
@@ -13,8 +13,6 @@ RUN \
         curl \
         # chisel-wrapper dependency \
         file \
-        # Needed to clone a custom chisel-releases \
-        git \
         # Needed to get the jellyfin-ffmpeg version \
         jq \
     && curl \
@@ -28,7 +26,6 @@ RUN \
         https://raw.githubusercontent.com/canonical/rocks-toolbox/main/chisel-wrapper \
     && chmod +x /usr/bin/chisel-wrapper \
     && mkdir -p /rootfs/var/lib/dpkg \
-    && git clone --branch jellyfin https://github.com/HadrienPatte/chisel-releases.git \
     \
     # Install jellyfin \
     && mkdir /jellyfin \
@@ -67,7 +64,7 @@ RUN \
     \
     # Build rootfs with jellyfin dependencies \
     && chisel-wrapper --generate-dpkg-status /rootfs/var/lib/dpkg/status -- \
-        --release ./chisel-releases \
+        --release ubuntu-${UBUNTU_VERSION} \
         --root /rootfs \
         # Base filesystem \
         base-files_base \
@@ -94,4 +91,3 @@ COPY --from=builder /jellyfin/usr /usr
 USER nonroot
 ENV XDG_CACHE_HOME=/config/cache
 ENTRYPOINT ["/usr/lib/jellyfin/bin/jellyfin", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg", "--webdir=/usr/share/jellyfin/web", "--datadir=/config"]
-