Skip to content

Commit

Permalink
更新docker中Ubuntu版本 (#487)
Browse files Browse the repository at this point in the history
注释掉了换源的操作,看看用于构建容器的机器能不能用官方源
我在本地进行了两次测试,第一次502了,第二次成功了

![Snipaste_2024-11-18_15-41-07](https://github.com/user-attachments/assets/b7383fbd-abb7-4d58-adc1-34a3c539e938)

---------

Co-authored-by: wangyunlai <[email protected]>
  • Loading branch information
liu33333 and hnwyllmm authored Nov 18, 2024
1 parent 52cb602 commit 297b1f5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 297b1f5

Please sign in to comment.