Merge pull request #80 from skjnldsv/revert-74-fix/rocm-tmp

This commit is contained in:
John Molakvoæ
2025-08-19 12:41:08 +02:00
committed by GitHub

View File

@@ -78,19 +78,15 @@ 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 - \ 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 && add-apt-repository "deb https://repo.radeon.com/rocm/apt/latest $(lsb_release -s -c) main" -y
# Disable compression for apt as ROCM repo has its compressed index broken RUN apt-get update \
RUN echo 'Acquire::CompressionTypes::Order { "none"; "gz"; "bz2"; "xz"; };' | tee /etc/apt/apt.conf.d/99prefer-uncompressed && apt-get install -y \
# Wait for the repo to be available
RUN sleep 10 && apt update \
&& sleep 5 && apt install -y --fix-missing \
vainfo \ vainfo \
mesa-va-drivers \ mesa-va-drivers \
mesa-vdpau-drivers \ mesa-vdpau-drivers \
libdrm-amdgpu1 \ libdrm-amdgpu1 \
libavutil58 \ libavutil58 \
rocm-opencl-runtime \ rocm-opencl-runtime \
&& apt clean && apt-get clean
# Copy lib files # Copy lib files
COPY --from=amd $OUTPUT/usr/lib/dri/*.so* /usr/lib/plexmediaserver/lib/dri/ COPY --from=amd $OUTPUT/usr/lib/dri/*.so* /usr/lib/plexmediaserver/lib/dri/