fix(Dockerfile): replace security sources mirrors

This commit is contained in:
jklincn 2024-01-26 12:29:57 +08:00
parent 2cbc492941
commit f217e270a6

View File

@ -10,6 +10,7 @@ FROM ubuntu:20.04 as build_qemu
ARG QEMU_VERSION=7.0.0 ARG QEMU_VERSION=7.0.0
RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \ RUN sed -i 's/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \
sed -i 's/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \
apt-get update && \ apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y wget build-essential libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build DEBIAN_FRONTEND=noninteractive apt-get install -y wget build-essential libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build