diff --git a/Dockerfile b/Dockerfile index 07b5cc5..09375d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,20 @@ ENV PYTHONUNBUFFERED 1 # install distro packages needed RUN apt-get clean && apt-get -y update && apt-get -y install --no-install-recommends \ build-essential \ - ffmpeg \ nginx \ curl && rm -rf /var/lib/apt/lists/* +# get newes patched ffmpeg and ffprobe builds +RUN curl -s https://api.github.com/repos/yt-dlp/FFmpeg-Builds/releases/autobuild-2021-09-28-12-38 \ + | grep browser_download_url \ + | grep linux64 \ + | grep ffmpeg-n \ + | cut -d '"' -f 4 \ + | xargs curl -L --output ffmpeg.tar.xz && \ + tar -xf ffmpeg.tar.xz --strip-components=2 --no-anchored -C /usr/bin/ "ffmpeg" && \ + tar -xf ffmpeg.tar.xz --strip-components=2 --no-anchored -C /usr/bin/ "ffprobe" && \ + rm ffmpeg.tar.xz + # copy config files COPY nginx.conf /etc/nginx/conf.d/