|
|
@@ -6,22 +6,27 @@ RUN rm -rf /etc/apt/sources.list.d/* && \
|
|
|
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
|
|
|
+
|
|
|
# 完全禁用APT的GPG验证
|
|
|
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::AllowDowngradeToInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99allow-unauthenticated
|
|
|
-# 现在可以无验证更新和安装
|
|
|
+
|
|
|
+# 现在可以无验证更新和安装基础工具
|
|
|
RUN apt update --fix-missing && \
|
|
|
apt install -y curl wget
|
|
|
|
|
|
-# 安装 pnpm
|
|
|
+# 先配置npm国内镜像(加速pnpm下载)
|
|
|
+RUN npm config set registry https://registry.npmmirror.com/
|
|
|
+
|
|
|
+# 安装 pnpm(现在会从国内镜像下载)
|
|
|
RUN npm install -g pnpm
|
|
|
|
|
|
-# 配置国内npm镜像
|
|
|
-RUN pnpm config set registry https://registry.npmmirror.com/
|
|
|
-RUN pnpm config set @jsr:registry https://npm.jsr.io
|
|
|
+# 配置pnpm镜像
|
|
|
+RUN pnpm config set registry https://registry.npmmirror.com/ && \
|
|
|
+ pnpm config set @jsr:registry https://npm.jsr.io
|
|
|
|
|
|
-# 添加PostgreSQL 17的官方仓库(同样禁用验证)
|
|
|
+# 添加PostgreSQL 17的官方仓库
|
|
|
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
|
|
echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list
|
|
|
|