perf(docker): switch agent openresty base image to alpine-slim

This commit is contained in:
ryan
2026-09-19 12:34:51 +08:00
parent bf1e77a865
commit 1fe2763034
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
RUN apk add --no-cache bash curl \
&& bash scripts/fetch-agent-geoip-mmdb.sh
FROM openresty/openresty:alpine
FROM openresty/openresty:alpine-slim
RUN apk add --no-cache ca-certificates tzdata libmaxminddb su-exec libcap \
&& ln -sf /usr/lib/libmaxminddb.so.0 /usr/lib/libmaxminddb.so \
+3
View File
@@ -10,6 +10,9 @@ sidebar: false
## [Unreleased]
### ⚡ 优化
- 优化 openflare-agent Docker 镜像体积:基础镜像切换为 `openresty/openresty:alpine-slim`,使用 BuildKit 原生 `--chown`/`--chmod` 消除 GeoIP MMDB 冗余层并在构建中清理 Perl 依赖,镜像总体积从 ~500MB+ 缩减至约 150MB。
## [v3.5.5] - 2026-09-19
### 🛠 修复