-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nvidia libraries into :nvidia image
Pull the nvidia encoding and decoding libraries from Debian and include them in the image. Fixes #34 Signed-off-by: Joe Groocock <me@frebib.net>
- Loading branch information
Showing
2 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG PLEX_VER=1.22.2.4282 | ||
ARG NVIDIA_VER=460.67 | ||
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/ |