@@ -2,8 +2,6 @@ FROM ubuntu:noble AS builder
22ARG FFMPEG_VERSION="7.1"
33ARG RCLONE_VER="v1.69.1"
44ARG GO_VERSION="latest"
5- ARG GO_CRYPTO_VERSION="v0.35.0"
6- ARG GO_OAUTH2_VERSION="v0.27.0"
75
86USER root
97
@@ -30,13 +28,10 @@ RUN if [ "${GO_VERSION}" = "latest" ]; then \
3028 && go version
3129
3230RUN cd /usr/local/src \
33- && git clone https://github.com/rclone/rclone.git \
31+ && git clone https://github.com/rclone/rclone.git --filter=blob:none \
3432 && cd rclone \
35- && git checkout ${RCLONE_VER} \
33+ && git checkout -b ${RCLONE_VER} \
3634 # Patch deps version in go.mod to fix CVEs
37- && sed -i "s|golang.org/x/crypto v.*|golang.org/x/crypto ${GO_CRYPTO_VERSION}|g" go.mod \
38- && sed -i "s|golang.org/x/oauth2 v.*|golang.org/x/oauth2 ${GO_OAUTH2_VERSION}|g" go.mod \
39- && go mod tidy \
4035 # Build rclone
4136 && make \
4237 && mv ~/go/bin/rclone /usr/local/bin/ \
@@ -46,7 +41,7 @@ RUN cd /usr/local/src \
4641# Install x264 from source
4742# ======================================
4843RUN cd /usr/local/src \
49- && git clone https://code.videolan.org/videolan/x264.git \
44+ && git clone https://code.videolan.org/videolan/x264.git --filter=blob:none \
5045 && cd x264 \
5146 && ./configure --prefix="/usr/local" --enable-static \
5247 && make \
@@ -56,9 +51,9 @@ RUN cd /usr/local/src \
5651# Install FFmpeg from source
5752# ======================================
5853RUN cd /usr/local/src \
59- && git clone https://github.com/FFmpeg/FFmpeg.git \
54+ && git clone https://github.com/FFmpeg/FFmpeg.git --filter=blob:none \
6055 && cd FFmpeg \
61- && git checkout release/ ${FFMPEG_VERSION} \
56+ && git checkout n ${FFMPEG_VERSION} \
6257 && rm -rf .git \
6358 && PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FFMPEG_VERSION=${FFMPEG_VERSION} ./configure \
6459 --prefix="/usr/local" \
0 commit comments