1
1
FROM ubuntu:noble AS builder
2
- ARG FFMPEG_VERSION="7.1"
2
+ ARG FFMPEG_VERSION="7.1.1 "
3
3
ARG RCLONE_VER="v1.69.1"
4
4
ARG GO_VERSION="latest"
5
5
ARG GO_CRYPTO_VERSION="v0.35.0"
6
6
ARG GO_OAUTH2_VERSION="v0.27.0"
7
+ ARG GO_NET_VERSION="v0.36.0"
7
8
8
9
USER root
9
10
@@ -30,12 +31,13 @@ RUN if [ "${GO_VERSION}" = "latest" ]; then \
30
31
&& go version
31
32
32
33
RUN 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 \
34
35
&& cd rclone \
35
36
&& git checkout ${RCLONE_VER} \
36
37
# Patch deps version in go.mod to fix CVEs
37
38
&& sed -i "s|golang.org/x/crypto v.*|golang.org/x/crypto ${GO_CRYPTO_VERSION}|g" go.mod \
38
39
&& 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 \
39
41
&& go mod tidy \
40
42
# Build rclone
41
43
&& make \
@@ -46,7 +48,7 @@ RUN cd /usr/local/src \
46
48
# Install x264 from source
47
49
# ======================================
48
50
RUN 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 \
50
52
&& cd x264 \
51
53
&& ./configure --prefix="/usr/local" --enable-static \
52
54
&& make \
@@ -56,9 +58,9 @@ RUN cd /usr/local/src \
56
58
# Install FFmpeg from source
57
59
# ======================================
58
60
RUN 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 \
60
62
&& cd FFmpeg \
61
- && git checkout release/ ${FFMPEG_VERSION} \
63
+ && git checkout n ${FFMPEG_VERSION} \
62
64
&& rm -rf .git \
63
65
&& PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FFMPEG_VERSION=${FFMPEG_VERSION} ./configure \
64
66
--prefix="/usr/local" \
0 commit comments