Files
jellyfin-ffmpeg/builder/images/base/Dockerfile
T
nyanmisaka 114e11550f 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>
2025-06-03 07:49:41 +08:00

35 lines
1.6 KiB
Docker

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 && \
apt-get -y install build-essential yasm nasm quilt rsync \
xxd pkgconf curl wget unzip git subversion mercurial \
autoconf automake libtool libtool-bin autopoint gettext cmake clang meson ninja-build \
texinfo texi2html help2man flex bison groff \
gperf itstool ragel libc6-dev zlib1g-dev libssl-dev \
gtk-doc-tools gobject-introspection gawk \
ocaml ocamlbuild libnum-ocaml-dev indent p7zip-full \
python3-setuptools python3-jinja2 python3-apt python-is-python3 && \
apt-get -y clean && \
git config --global user.email "builder@localhost" && \
git config --global user.name "Builder" && \
git config --global advice.detachedHead false
ENV CARGO_HOME="/opt/cargo" RUSTUP_HOME="/opt/rustup" PATH="/opt/cargo/bin:${PATH}"
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path
RUN cargo install --locked cargo-c && rm -rf "${CARGO_HOME}"/registry "${CARGO_HOME}"/git
RUN --mount=src=.,dst=/input \
for s in /input/*.sh; do cp $s /usr/bin/$(echo $s | sed -e 's|.*/||' -e 's/\.sh$//'); done