Skip to content

Commit 20e698e

Browse files
committed
feat: Use an image hosted in AliCloud ACR as the base image
1 parent 48b588a commit 20e698e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# 构建阶段:处理插件和元数据
2+
# FROM python:3.11-alpine AS builder
23
FROM higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/python:3.11-alpine AS builder
34

45
# 安装系统依赖
@@ -26,7 +27,8 @@ COPY pull_plugins.py plugins.properties ./
2627
RUN python3 pull_plugins.py
2728

2829
# 运行阶段:最终镜像
29-
FROM docker.io/nginx:alpine
30+
# FROM nginx:alpine
31+
FROM higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/nginx:alpine
3032

3133
# 从构建阶段复制生成的文件
3234
COPY --from=builder /workspace/plugins /usr/share/nginx/html/plugins

0 commit comments

Comments
 (0)