diff --git a/Dockerfile b/Dockerfile index 1b4abed..442836b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ RUN apt update && apt install -y \ curl \ pkg-config \ ca-certificates \ - protobuf-compiler + protobuf-compiler \ + zlib1g # Copy dependency files first for better caching COPY Cargo.toml Cargo.lock ./ @@ -23,6 +24,7 @@ COPY tbm-proto ./tbm-proto RUN curl -X GET https://pakin-inspiron-15-3530.tail110d9.ts.net/pakin/tbm-git-repo-service/releases/download/config/.tbcfg -o .tbcfg # Build the application +ENV RUSTFLAGS="-C target-feature=+crt-static" RUN cargo build --release # Builder