Skip to content

Commit 7872df7

Browse files
authored
[ci] Improve build FFmpeg source (#3072)
[skip ci]
1 parent 61765ef commit 7872df7

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.ffmpeg/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM ubuntu:noble AS builder
2-
ARG FFMPEG_VERSION="8.0.1"
3-
ARG RCLONE_VER="v1.73.0"
2+
ARG FFMPEG_VERSION="8.0"
3+
ARG RCLONE_VER="v1.73-stable"
44
ARG GO_VERSION="latest"
55
#ARG GO_CRYPTO_VERSION="v0.36.0"
66
#ARG GO_OAUTH2_VERSION="v0.27.0"
@@ -33,9 +33,8 @@ RUN if [ "${GO_VERSION}" = "latest" ]; then \
3333
&& go version
3434

3535
RUN cd /usr/local/src \
36-
&& git clone https://github.com/rclone/rclone.git --filter=blob:none \
36+
&& git clone -b ${RCLONE_VER} --single-branch --depth 1 https://github.com/rclone/rclone.git \
3737
&& cd rclone \
38-
&& git checkout ${RCLONE_VER} \
3938
# Patch deps version in go.mod to fix CVEs
4039
# && sed -i "s|golang.org/x/crypto v.*|golang.org/x/crypto ${GO_CRYPTO_VERSION}|g" go.mod \
4140
# && 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 \
6261
# Install FFmpeg from source
6362
#======================================
6463
RUN cd /usr/local/src \
65-
&& git clone https://github.com/FFmpeg/FFmpeg.git --filter=blob:none \
64+
&& git clone -b release/${FFMPEG_VERSION} --single-branch --depth 1 https://github.com/FFmpeg/FFmpeg.git \
6665
&& cd FFmpeg \
67-
&& git checkout n${FFMPEG_VERSION} \
6866
&& rm -rf .git \
6967
&& PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" FFMPEG_VERSION=${FFMPEG_VERSION} ./configure \
7068
--prefix="/usr/local" \

0 commit comments

Comments
 (0)