11FROM ubuntu:noble AS builder
2- ARG FFMPEG_VERSION="7.1"
2+ ARG FFMPEG_VERSION="7.1.1 "
33ARG RCLONE_VER="v1.69.1"
44ARG GO_VERSION="latest"
55ARG GO_CRYPTO_VERSION="v0.35.0"
66ARG GO_OAUTH2_VERSION="v0.27.0"
7+ ARG GO_NET_VERSION="v0.36.0"
78
89USER root
910
@@ -30,12 +31,13 @@ RUN if [ "${GO_VERSION}" = "latest" ]; then \
3031 && go version
3132
3233RUN cd /usr/local/src \
33- && git clone https://github.com/rclone/rclone.git \
34+ && git clone https://github.com/rclone/rclone.git --filter=blob:none \
3435 && cd rclone \
3536 && git checkout ${RCLONE_VER} \
3637 # Patch deps version in go.mod to fix CVEs
3738 && sed -i "s|golang.org/x/crypto v.*|golang.org/x/crypto ${GO_CRYPTO_VERSION}|g" go.mod \
3839 && sed -i "s|golang.org/x/oauth2 v.*|golang.org/x/oauth2 ${GO_OAUTH2_VERSION}|g" go.mod \
40+ && sed -i "s|golang.org/x/net v.*|golang.org/x/net ${GO_NET_VERSION}|g" go.mod \
3941 && go mod tidy \
4042 # Build rclone
4143 && make \
@@ -46,7 +48,7 @@ RUN cd /usr/local/src \
4648# Install x264 from source
4749# ======================================
4850RUN cd /usr/local/src \
49- && git clone https://code.videolan.org/videolan/x264.git \
51+ && git clone https://code.videolan.org/videolan/x264.git --filter=blob:none \
5052 && cd x264 \
5153 && ./configure --prefix="/usr/local" --enable-static \
5254 && make \
@@ -56,9 +58,9 @@ RUN cd /usr/local/src \
5658# Install FFmpeg from source
5759# ======================================
5860RUN cd /usr/local/src \
59- && git clone https://github.com/FFmpeg/FFmpeg.git \
61+ && git clone https://github.com/FFmpeg/FFmpeg.git --filter=blob:none \
6062 && cd FFmpeg \
61- && git checkout release/ ${FFMPEG_VERSION} \
63+ && git checkout n ${FFMPEG_VERSION} \
6264 && rm -rf .git \
6365 && PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FFMPEG_VERSION=${FFMPEG_VERSION} ./configure \
6466 --prefix="/usr/local" \
0 commit comments