From a24fc51b672c79ab62055b4c6e2acf9f0b4203cb Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 16 Mar 2020 06:59:08 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c29b56..e8a18dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,39 @@ -FROM jrottenberg/ffmpeg:snapshot-vaapi as ffmpeg +FROM randomninjaatk/ffmpeg:bin as binstage FROM linuxserver/sabnzbd LABEL maintainer="RandomNinjaAtk" ENV SMA_PATH /usr/local/sma ENV SMA_UPDATE false -# Add files from ffmpeg -COPY --from=ffmpeg /usr/local/ /usr/local/ +# Add files from binstage +COPY --from=binstage / / + +# hardware env +ENV \ + LIBVA_DRIVERS_PATH="/usr/lib/x86_64-linux-gnu/dri" \ + NVIDIA_DRIVER_CAPABILITIES="compute,video,utility" \ + NVIDIA_VISIBLE_DEVICES="all" + +RUN \ + echo "**** install runtime ****" && \ + apt-get update && \ + apt-get install -y \ + i965-va-driver \ + libexpat1 \ + libgl1-mesa-dri \ + libglib2.0-0 \ + libgomp1 \ + libharfbuzz0b \ + libv4l-0 \ + libx11-6 \ + libxcb1 \ + libxext6 \ + libxml2 && \ + echo "**** clean up ****" && \ + rm -rf \ + /var/lib/apt/lists/* \ + /var/tmp/* + ENV VERSION="1.0.0"