diff --git a/.ffmpeg/Dockerfile b/.ffmpeg/Dockerfile index 5fe8d4def1..e4c3692f72 100644 --- a/.ffmpeg/Dockerfile +++ b/.ffmpeg/Dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:noble AS builder -ARG FFMPEG_VERSION="8.0.1" -ARG RCLONE_VER="v1.73.0" +ARG FFMPEG_VERSION="8.0" +ARG RCLONE_VER="v1.73-stable" ARG GO_VERSION="latest" #ARG GO_CRYPTO_VERSION="v0.36.0" #ARG GO_OAUTH2_VERSION="v0.27.0" @@ -33,9 +33,8 @@ RUN if [ "${GO_VERSION}" = "latest" ]; then \ && go version RUN cd /usr/local/src \ - && git clone https://github.com/rclone/rclone.git --filter=blob:none \ + && git clone -b ${RCLONE_VER} --single-branch --depth 1 https://github.com/rclone/rclone.git \ && cd rclone \ - && git checkout ${RCLONE_VER} \ # Patch deps version in go.mod to fix CVEs # && sed -i "s|golang.org/x/crypto v.*|golang.org/x/crypto ${GO_CRYPTO_VERSION}|g" go.mod \ # && sed -i "s|golang.org/x/oauth2 v.*|golang.org/x/oauth2 ${GO_OAUTH2_VERSION}|g" go.mod \ @@ -62,9 +61,8 @@ RUN cd /usr/local/src \ # Install FFmpeg from source #====================================== RUN cd /usr/local/src \ - && git clone https://github.com/FFmpeg/FFmpeg.git --filter=blob:none \ + && git clone -b release/${FFMPEG_VERSION} --single-branch --depth 1 https://github.com/FFmpeg/FFmpeg.git \ && cd FFmpeg \ - && git checkout n${FFMPEG_VERSION} \ && rm -rf .git \ && PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FFMPEG_VERSION=${FFMPEG_VERSION} ./configure \ --prefix="/usr/local" \