perf(docker): 配置阿里云 Alpine 镜像源加速构建
Some checks failed
Deploy / Build and Push Images (push) Failing after 1m53s
Deploy / Deploy to Knative (push) Has been skipped

- 使用阿里云 mirrors.aliyun.com 替代官方 dl-cdn.alpinelinux.org
- 显著加速 apk 包下载速度(python3, make, g++ 等)
- 对国内网络环境友好
This commit is contained in:
Charile Zhou
2026-01-23 00:24:20 +08:00
parent 9b24ef50d7
commit f26cd1a739
2 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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