update Dockerfile to use Aliyun mirrors for Ubuntu sources
This commit is contained in:
@@ -2,6 +2,10 @@ FROM osrf/ros:jazzy-desktop-full AS builder
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# 替换 ubuntu.sources 中的官方源为阿里云
|
||||
RUN sed -i 's|http://archive.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list.d/ubuntu.sources && \
|
||||
sed -i 's|http://security.ubuntu.com/ubuntu|https://mirrors.aliyun.com/ubuntu|g' /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
# catkin-tools
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
|
||||
Reference in New Issue
Block a user