2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-11-13 20:46:22 +00:00
plex-media-server/Dockerfile.nvidia

28 lines
745 B
Docker
Raw Normal View History

ARG PLEX_VER=1.23.4.4712
ARG NVIDIA_VER=465.31
ARG NVIDIA_REV=1
ARG ARCH=amd64
FROM alpine
ARG NVIDIA_VER
ARG NVIDIA_REV
ARG ARCH
RUN apk add --no-cache curl dpkg && \
for pkg in libnvcuvid1 libnvidia-encode1; do \
curl -fsSLO https://deb.debian.org/debian/pool/non-free/n/nvidia-graphics-drivers/${pkg}_${NVIDIA_VER}-${NVIDIA_REV}_${ARCH}.deb && \
dpkg-deb -x ${pkg}_${NVIDIA_VER}-${NVIDIA_REV}_${ARCH}.deb /nvidia; \
done
# ~~~~~~~~~~~~~~~~~~
FROM spritsail/plex-media-server:plexpass-${PLEX_VER}
ARG NVIDIA_VER
COPY --from=0 \
/nvidia/usr/lib/x86_64-linux-gnu/nvidia/current/libnvcuvid.so.${NVIDIA_VER} \
/nvidia/usr/lib/x86_64-linux-gnu/nvidia/current/libnvidia-encode.so.${NVIDIA_VER} \
/usr/lib/