Skip to content

Instantly share code, notes, and snippets.

@kudos
Created July 4, 2021 14:02
Show Gist options
  • Save kudos/1d3783181bc590ecb0b0ad8702274b2c to your computer and use it in GitHub Desktop.
Save kudos/1d3783181bc590ecb0b0ad8702274b2c to your computer and use it in GitHub Desktop.
Plex Dockerfile with AMD HW transcoding support added
FROM plexinc/pms-docker:1.22.3.4523-d0ce30438
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:oibaf/graphics-drivers -y && \
apt-get update && \
apt-get install -y \
vainfo \
mesa-va-drivers \
mesa-vdpau-drivers \
libdrm-amdgpu1 \
libavutil56 && \
apt-get -y autoremove && \
apt-get -y clean && \
mkdir -p /usr/lib/plexmediaserver/lib/dri/ && \
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 /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment