Browse Source

feat: dockerfile不再替换apt源

z 4 ngày trước cách đây
mục cha
commit
f62dd30530
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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