mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-28 05:46:36 +08:00
perf(docker): switch agent openresty base image to alpine-slim
This commit is contained in:
@@ -26,7 +26,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
RUN apk add --no-cache bash curl \
|
RUN apk add --no-cache bash curl \
|
||||||
&& bash scripts/fetch-agent-geoip-mmdb.sh
|
&& 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 \
|
RUN apk add --no-cache ca-certificates tzdata libmaxminddb su-exec libcap \
|
||||||
&& ln -sf /usr/lib/libmaxminddb.so.0 /usr/lib/libmaxminddb.so \
|
&& ln -sf /usr/lib/libmaxminddb.so.0 /usr/lib/libmaxminddb.so \
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ sidebar: false
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### ⚡ 优化
|
||||||
|
- 优化 openflare-agent Docker 镜像体积:基础镜像切换为 `openresty/openresty:alpine-slim`,使用 BuildKit 原生 `--chown`/`--chmod` 消除 GeoIP MMDB 冗余层并在构建中清理 Perl 依赖,镜像总体积从 ~500MB+ 缩减至约 150MB。
|
||||||
|
|
||||||
## [v3.5.5] - 2026-09-19
|
## [v3.5.5] - 2026-09-19
|
||||||
|
|
||||||
### 🛠 修复
|
### 🛠 修复
|
||||||
|
|||||||
Reference in New Issue
Block a user