mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
refactor(build): 切换到 musl 交叉编译 + distroless 镜像方案
- docker-publish.yml: 改为 cross 交叉编译 amd64/arm64 musl 静态二进制, 前端在 CI 独立构建, buildx 组装多架构镜像 - Dockerfile.app: 从 139 行容器内编译简化为 24 行纯 COPY 打包 - Dockerfile.app.local: 移除 jemalloc 动态链接 (LD_PRELOAD/libjemalloc2) - aether-gateway: 引入 tikv-jemallocator 静态链接 jemalloc
This commit is contained in:
@@ -58,6 +58,9 @@ url.workspace = true
|
||||
uuid.workspace = true
|
||||
webpki-roots.workspace = true
|
||||
|
||||
[target.'cfg(not(target_env = "msvc"))'.dependencies]
|
||||
tikv-jemallocator = "0.6"
|
||||
|
||||
[dev-dependencies]
|
||||
aether-testkit.workspace = true
|
||||
tracing-subscriber.workspace = true
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
#[global_allocator]
|
||||
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
||||
|
||||
use clap::{Args as ClapArgs, Parser, ValueEnum};
|
||||
use tracing::{debug, info, warn};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user