From 297b1f53703efaec261ae8b99877e48ed9b5a02b Mon Sep 17 00:00:00 2001 From: ThreeLiu <96512084+liu33333@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0docker=E4=B8=ADUbuntu?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20(#487)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 注释掉了换源的操作,看看用于构建容器的机器能不能用官方源 我在本地进行了两次测试,第一次502了,第二次成功了 ![Snipaste_2024-11-18_15-41-07](https://github.com/user-attachments/assets/b7383fbd-abb7-4d58-adc1-34a3c539e938) --------- Co-authored-by: wangyunlai --- docker/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 856ef4408..39e3a541f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,14 +9,14 @@ ENV LANG en_US.utf8 RUN apt-get update && apt-get install -y locales apt-utils && rm -rf /var/lib/apt/lists/* \ && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 -# Change sources to Aliyun -RUN cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak \ - && echo 'Types: deb' > /etc/apt/sources.list.d/ubuntu.sources \ - && echo 'URIs: http://mirrors.aliyun.com/ubuntu/' >> /etc/apt/sources.list.d/ubuntu.sources \ - && echo 'Suites: noble noble-updates noble-security' >> /etc/apt/sources.list.d/ubuntu.sources \ - && echo 'Components: main restricted universe multiverse' >> /etc/apt/sources.list.d/ubuntu.sources \ - && echo 'Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg' >> /etc/apt/sources.list.d/ubuntu.sources \ - && apt-get update +# # Change sources to Aliyun +# RUN cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak \ +# && echo 'Types: deb' > /etc/apt/sources.list.d/ubuntu.sources \ +# && echo 'URIs: http://mirrors.aliyun.com/ubuntu/' >> /etc/apt/sources.list.d/ubuntu.sources \ +# && echo 'Suites: noble noble-updates noble-security' >> /etc/apt/sources.list.d/ubuntu.sources \ +# && echo 'Components: main restricted universe multiverse' >> /etc/apt/sources.list.d/ubuntu.sources \ +# && echo 'Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg' >> /etc/apt/sources.list.d/ubuntu.sources \ +# && apt-get update RUN apt-get update \ && apt-get install -y build-essential gdb cmake git wget flex texinfo libreadline-dev diffutils bison \