File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 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
@@ -36,6 +37,7 @@ RUN cd /usr/local/src \
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 \
@@ -58,7 +60,7 @@ RUN cd /usr/local/src \
5860RUN cd /usr/local/src \
5961 && git clone https://github.com/FFmpeg/FFmpeg.git \
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" \
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ ENV DEBIAN_FRONTEND=noninteractive \
4545# Miscellaneous packages
4646# Includes minimal runtime used for executing non GUI Java programs
4747# ========================
48+ RUN echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse\n " > /etc/apt/sources.list \
49+ && echo "deb-src [arch=amd64] http://archive.ubuntu.com/ubuntu noble main restricted universe multiverse\n " >> /etc/apt/sources.list \
50+ && echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" >> /etc/apt/sources.list \
51+ && echo "deb-src [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" >> /etc/apt/sources.list
52+
4853RUN apt-get -qqy update \
4954 && apt-get upgrade -yq \
5055 && apt-get -qqy --no-install-recommends install \
@@ -56,14 +61,18 @@ RUN apt-get -qqy update \
5661 unzip \
5762 wget \
5863 jq \
59- curl \
6064 supervisor \
6165 gnupg2 \
6266 libnss3-tools \
6367 openjdk-${JRE_VERSION}-jdk-headless \
6468 ca-certificates \
6569 && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
6670
71+ RUN ARCH=$(if [ "$(dpkg --print-architecture)" = "arm64" ]; then echo "aarch64" ; else echo "$(dpkg --print-architecture)" ; fi) \
72+ && wget -q https://github.com/moparisthebest/static-curl/releases/download/v8.11.0/curl-$ARCH -O /usr/bin/curl \
73+ && chmod +x /usr/bin/curl \
74+ && curl --version
75+
6776RUN --mount=type=secret,id=SEL_PASSWD \
6877 if [ "${TARGETARCH}" = "arm" ] && [ "${TARGETVARIANT}" = "v7" ]; then \
6978 export ARCH=armhf ; \
You can’t perform that action at this time.
0 commit comments