阿里云杭州源 TLS handshake timeout 导致首次 CI 失败, 换回官方 node:18-alpine;mcr.microsoft.com 能通常 docker.io 也能。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
# 多阶段构建 Dockerfile
|
# 多阶段构建 Dockerfile
|
||||||
# 第一阶段:构建前端
|
# 第一阶段:构建前端
|
||||||
# 使用国内镜像源,避免 Docker Hub 拉取失败(可改为 node:18-alpine 若已配置 Docker 镜像加速)
|
# 使用官方 Docker Hub(mcr 能访问的环境一般也能访问 docker.io)
|
||||||
FROM registry.cn-hangzhou.aliyuncs.com/library/node:18-alpine AS frontend-builder
|
FROM node:18-alpine AS frontend-builder
|
||||||
|
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user