|
@@ -1,17 +1,15 @@
|
|
|
-# 使用指定基础镜像
|
|
|
|
|
FROM docker.1ms.run/node:20.19.4-bookworm
|
|
FROM docker.1ms.run/node:20.19.4-bookworm
|
|
|
|
|
|
|
|
-# 设置软件源为清华大学镜像源
|
|
|
|
|
-RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
|
|
|
|
|
|
+# 清除所有现有的APT源配置
|
|
|
|
|
+RUN rm -rf /etc/apt/sources.list.d/* && \
|
|
|
|
|
+ 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-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/ 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
|
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
|
|
|
-
|
|
|
|
|
# 完全禁用APT的GPG验证
|
|
# 完全禁用APT的GPG验证
|
|
|
RUN echo 'APT::Get::AllowUnauthenticated "true";' > /etc/apt/apt.conf.d/99allow-unauthenticated && \
|
|
RUN echo 'APT::Get::AllowUnauthenticated "true";' > /etc/apt/apt.conf.d/99allow-unauthenticated && \
|
|
|
echo 'Acquire::AllowInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99allow-unauthenticated && \
|
|
echo 'Acquire::AllowInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99allow-unauthenticated && \
|
|
|
echo 'Acquire::AllowDowngradeToInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99allow-unauthenticated
|
|
echo 'Acquire::AllowDowngradeToInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99allow-unauthenticated
|
|
|
-
|
|
|
|
|
# 现在可以无验证更新和安装
|
|
# 现在可以无验证更新和安装
|
|
|
RUN apt update --fix-missing && \
|
|
RUN apt update --fix-missing && \
|
|
|
apt install -y curl wget
|
|
apt install -y curl wget
|