From 12dfa2479629fcbada3d997ea938261ce2cc27d5 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 15 Aug 2025 09:15:52 +0200 Subject: [PATCH] chore: tmp fix for outdated rocm apt index Signed-off-by: skjnldsv --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b017cf9..1202be1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,15 +78,19 @@ RUN add-apt-repository ppa:oibaf/graphics-drivers -y RUN curl -sL --retry 3 https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \ && add-apt-repository "deb https://repo.radeon.com/rocm/apt/latest $(lsb_release -s -c) main" -y -RUN apt-get update \ - && apt-get install -y \ +# Disable compression for apt as ROCM repo has its compressed index broken +RUN echo 'Acquire::CompressionTypes::Order { "none"; "gz"; "bz2"; "xz"; };' | tee /etc/apt/apt.conf.d/99prefer-uncompressed + +# Wait for the repo to be available +RUN sleep 10 && apt update \ + && sleep 5 && apt install -y --fix-missing \ vainfo \ mesa-va-drivers \ mesa-vdpau-drivers \ libdrm-amdgpu1 \ libavutil58 \ rocm-opencl-runtime \ - && apt-get clean + && apt clean # Copy lib files COPY --from=amd $OUTPUT/usr/lib/dri/*.so* /usr/lib/plexmediaserver/lib/dri/