using ffmpeg patched builds instead of repo version, #37 #26

This commit is contained in:
simon 2021-09-30 22:01:30 +07:00
parent 4d348955a3
commit b12df3f312
1 changed files with 11 additions and 1 deletions

View File

@ -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/