From 1113bfe1def5951093226c8aff9882f81ea0c9c4 Mon Sep 17 00:00:00 2001 From: Wanjohi <71614375+wanjohiryan@users.noreply.github.com> Date: Sat, 24 Jun 2023 22:47:51 +0300 Subject: [PATCH] Install ffmpeg 2 --- docker/nvidia/Dockerfile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docker/nvidia/Dockerfile b/docker/nvidia/Dockerfile index d405e78..b174d27 100644 --- a/docker/nvidia/Dockerfile +++ b/docker/nvidia/Dockerfile @@ -1,6 +1,8 @@ #! Some code was copied or inspired by https://github.com/ehfd/nvidia-dind/blob/main/Dockerfile # Which is licensed under MPL-2.0 license # Thanks ehfd :) +FROM ghcr.io/jrottenberg/ffmpeg/5.0.1-ubuntu2004:latest as ffmpeg + ARG UBUNTU_RELEASE=22.04 FROM ubuntu:${UBUNTU_RELEASE} @@ -51,15 +53,10 @@ RUN wget -nv -O /usr/bin/winetricks https://raw.githubusercontent.com/Winetricks # #Install ffmpeg5 -RUN apt update -y; \ - apt upgrade -y; \ - apt install -y ffmpeg; \ - #check the installed version - ffmpeg -version; \ - # - #clean up - # - rm -rf /var/lib/apt/lists/* /var/cache/apt/* +COPY --from=ffmpeg /usr/local /usr/local/ + +#check the installed version +RUN ffmpeg -version; # # NVIDIA Container Toolkit & Docker