소스 검색

🔧 chore(docker): update debian apt sources configuration

- 添加 non-free-firmware 组件到所有源以支持更多硬件驱动
- 优化 security 源 URL 格式,移除重复的 bookworm 路径部分
- 增加注释说明操作是覆盖整个 sources.list 文件
yourname 1 개월 전
부모
커밋
d5443e8ab7
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      Dockerfile

+ 5 - 4
Dockerfile

@@ -2,10 +2,11 @@
 FROM docker.1ms.run/node:20.19.4
 
 # 设置软件源为清华大学镜像源
-RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main non-free contrib" > /etc/apt/sources.list && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main non-free contrib" >> /etc/apt/sources.list && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main non-free contrib" >> /etc/apt/sources.list && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main non-free contrib" >> /etc/apt/sources.list
+# 替换 Debian 源为清华镜像(覆盖整个 sources.list 文件)
+RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
+    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
+    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
+    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
 
 RUN apt update  --fix-missing && \
     apt install -y curl wget