perf(docker): 配置阿里云 Alpine 镜像源加速构建
- 使用阿里云 mirrors.aliyun.com 替代官方 dl-cdn.alpinelinux.org - 显著加速 apk 包下载速度(python3, make, g++ 等) - 对国内网络环境友好
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
# Base stage: Install dependencies
|
||||
# ============================================
|
||||
FROM harbor.tegical.world/docker.io/node:24.11.1-alpine AS base
|
||||
# 配置阿里云 Alpine 镜像源
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
|
||||
# 配置镜像源
|
||||
ENV COREPACK_NPM_REGISTRY=https://verdaccio.tegical.world
|
||||
RUN corepack enable
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
# Base stage: Install dependencies
|
||||
# ============================================
|
||||
FROM harbor.tegical.world/docker.io/node:24.11.1-alpine AS base
|
||||
# 配置阿里云 Alpine 镜像源
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
|
||||
# 配置镜像源
|
||||
ENV COREPACK_NPM_REGISTRY=https://verdaccio.tegical.world
|
||||
RUN corepack enable
|
||||
|
||||
Reference in New Issue
Block a user