Remove default CPU/memory caps and add LTO build optimization

- Default PROXY_CPUS and PROXY_MEMORY now empty (use full system resources)
- Docker run skips --cpus/--memory flags when not set
- Dockerfile: enable LTO, codegen-units=1 for optimized binary
This commit is contained in:
SamNet-dev
2026-02-19 02:32:08 -06:00
parent f571f05c61
commit bca1fda425
2 changed files with 14 additions and 11 deletions

View File

@@ -47,6 +47,7 @@ jobs:
RUN git clone "https://github.com/${TELEMT_REPO}.git" /build
WORKDIR /build
RUN git checkout "${TELEMT_COMMIT}"
ENV CARGO_PROFILE_RELEASE_LTO=true CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 CARGO_PROFILE_RELEASE_DEBUG=false
RUN cargo build --release && strip target/release/telemt 2>/dev/null || true && cp target/release/telemt /telemt
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*