Skip to content

Instantly share code, notes, and snippets.

@mauimauer
Created January 10, 2021 05:38
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save mauimauer/8a4e9fee68e9f28a34d29314659122d1 to your computer and use it in GitHub Desktop.
Save mauimauer/8a4e9fee68e9f28a34d29314659122d1 to your computer and use it in GitHub Desktop.
diff --git a/Dockerfile b/Dockerfile
index 5e32433..f746306 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,8 +24,17 @@ PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (LinuxServer.io)"
RUN \
echo "**** install runtime packages ****" && \
apt-get update && \
+ apt-get install -y software-properties-common && \
+ add-apt-repository ppa:oibaf/graphics-drivers -y && \
+ apt-get update && \
+ apt-get update && \
apt-get install -y \
beignet-opencl-icd \
+ vainfo \
+ mesa-va-drivers \
+ mesa-vdpau-drivers \
+ libdrm-amdgpu1 \
+ libavutil56 \
jq \
ocl-icd-libopencl1 \
udev \
@@ -55,6 +64,12 @@ RUN \
usermod -d /app abc && \
echo "**** cleanup ****" && \
apt-get clean && \
+ cp /lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so /usr/lib/plexmediaserver/lib/dri/ && \
+ cp /lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.* /usr/lib/plexmediaserver/lib/libdrm_amdgpu.so.1 && \
+ cp /lib/x86_64-linux-gnu/libdrm.so.2.* /usr/lib/plexmediaserver/lib/libdrm.so.2 && \
+ cp /lib/x86_64-linux-gnu/libva-drm.so.2.* /usr/lib/plexmediaserver/lib/libva-drm.so.2 && \
+ cp /lib/x86_64-linux-gnu/libva.so.2.* /usr/lib/plexmediaserver/lib/libva.so.2 && \
+ cp /lib/x86_64-linux-gnu/libstdc++.so.6.* /usr/lib/plexmediaserver/lib/libstdc++.so.6 && \
rm -rf \
/etc/default/plexmediaserver \
/tmp/* \
@Klice
Copy link

Klice commented Oct 16, 2023

should it be apt-get upgrade?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment