diff --git a/bots/rusher/Cargo.toml b/bots/rusher/Cargo.toml index 0e34b4a..1591426 100644 --- a/bots/rusher/Cargo.toml +++ b/bots/rusher/Cargo.toml @@ -16,5 +16,5 @@ tracing-subscriber = "0.3" [profile.release] strip = true -opt-level = "z" -lto = true +opt-level = "s" +lto = "thin" diff --git a/bots/rusher/Dockerfile b/bots/rusher/Dockerfile index c5d9c83..6b8caab 100644 --- a/bots/rusher/Dockerfile +++ b/bots/rusher/Dockerfile @@ -2,7 +2,7 @@ FROM rust:1.85-alpine AS builder WORKDIR /app -COPY Cargo.toml ./ +COPY Cargo.toml Cargo.lock ./ COPY src ./src RUN cargo build --release