浏览代码

feat: dockerfile不再替换apt源

z 4 天之前
父节点
当前提交
f62dd30530
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -2,7 +2,7 @@
 FROM node:22-bookworm AS deps
 
 # 使用阿里云镜像源
-RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
+# RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
 
 RUN corepack enable && corepack prepare pnpm@10.24.0 --activate
 
@@ -35,7 +35,7 @@ RUN pnpm build
 # Stage 3: Runtime — fresh prod install with hoisted layout
 FROM node:22-bookworm-slim AS runtime
 
-RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
+# RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources
 
 RUN corepack enable && corepack prepare pnpm@10.24.0 --activate