Skip to content

Commit b14076b

Browse files
committed
build(Dockerfile): 修改镜像源,提供vpc网络通道
1 parent 1b30f31 commit b14076b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
# CONTAINER_BUILD: 采用容器构建
77
#
88

9-
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:20.17.0-alpine AS build_base
9+
FROM registry.cn-hangzhou.aliyuncs.com/142vip-infra/node:20.18.0-alpine AS build_base
1010

1111
# 是否配置代理
1212
ARG NEED_PROXY=false
1313

14+
ENV NODE_OPTIONS --max-old-space-size=200000
1415
# 设置环境变量,支持容器构建时使用layer缓存,参考:https://pnpm.io/zh/docker
1516
ENV PNPM_HOME="/pnpm"
1617
ENV PATH="$PNPM_HOME:$PATH"
@@ -31,8 +32,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && \
3132
fi;
3233

3334
# 构建linux镜像
34-
#FROM --platform=linux/amd64 nginx:1.27.0-alpine
35-
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.27.0-alpine
35+
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.29.0-alpine
3636

3737
# 自定义镜像的Label信息
3838
ARG APP_NAME

docker-compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# #
22
# 服务名: JavaScriptCollection
33
# IP范围: 172.30.0.200
4+
# 镜像拉取慢,在阿里云服务器上,可以考虑走vpc网络:registry-vpc.cn-hangzhou.aliyuncs.com
45
#
56
version: '2'
67
services:

0 commit comments

Comments
 (0)