mirror of
https://github.com/jellyfin/jellyfin-ffmpeg.git
synced 2026-09-02 21:03:08 +03:00
Use more reliable mirrors for Ubuntu packages
The Ubuntu main repo seems to have banned the IPs of the GH action runners. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -24,6 +24,14 @@ ENV CPPFLAGS="-I${TARGET_DIR}/include $CPPFLAGS"
|
||||
ENV CFLAGS="-I${TARGET_DIR}/include $CFLAGS"
|
||||
ENV CMAKE_POLICY_VERSION_MINIMUM="3.5"
|
||||
|
||||
# Use more reliable mirrors for Ubuntu packages
|
||||
RUN mkdir -p /etc/apt/sources.list.d/ \
|
||||
&& touch /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& sed -i 's|archive.ubuntu.com/ubuntu/|mirrors.kernel.org/ubuntu/|g' \
|
||||
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& sed -i 's|security.ubuntu.com/ubuntu/|mirrors.kernel.org/ubuntu/|g' \
|
||||
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
# Prepare Debian build environment
|
||||
RUN apt-get update \
|
||||
&& apt-get dist-upgrade -y \
|
||||
|
||||
@@ -23,6 +23,14 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
||||
DLLTOOL="x86_64-w64-mingw32-dlltool" \
|
||||
CMAKE_POLICY_VERSION_MINIMUM="3.5"
|
||||
|
||||
# Use more reliable mirrors for Ubuntu packages
|
||||
RUN mkdir -p /etc/apt/sources.list.d/ \
|
||||
&& touch /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& sed -i 's|archive.ubuntu.com/ubuntu/|mirrors.kernel.org/ubuntu/|g' \
|
||||
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& sed -i 's|security.ubuntu.com/ubuntu/|mirrors.kernel.org/ubuntu/|g' \
|
||||
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
# Prepare Debian and mingw-w64 build environment
|
||||
RUN apt-get update \
|
||||
&& apt-get dist-upgrade -y \
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
FROM ubuntu:noble
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Use more reliable mirrors for Ubuntu packages
|
||||
RUN mkdir -p /etc/apt/sources.list.d/ \
|
||||
&& touch /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& sed -i 's|archive.ubuntu.com/ubuntu/|mirrors.kernel.org/ubuntu/|g' \
|
||||
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources \
|
||||
&& sed -i 's|security.ubuntu.com/ubuntu/|mirrors.kernel.org/ubuntu/|g' \
|
||||
/etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
RUN \
|
||||
apt-get -y update && \
|
||||
apt-get -y dist-upgrade && \
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ set -o errexit
|
||||
set -o xtrace
|
||||
|
||||
DEBIAN_ADDR=http://deb.debian.org/debian/
|
||||
UBUNTU_ARCHIVE_ADDR=http://archive.ubuntu.com/ubuntu/
|
||||
UBUNTU_ARCHIVE_ADDR=http://mirrors.kernel.org/ubuntu/ # http://archive.ubuntu.com/ubuntu/
|
||||
UBUNTU_PORTS_ADDR=http://ports.ubuntu.com/ubuntu-ports/
|
||||
|
||||
# Prepare common extra libs for amd64 and arm64
|
||||
|
||||
Reference in New Issue
Block a user