From e013ac26bd4bfef8dba96344b4d56638360476b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 30 Jan 2023 21:07:37 +0300 Subject: [PATCH] chore(bin): strip the binary symbols with an option in Cargo.toml --- Cargo.toml | 1 + Dockerfile | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7f6a5ce..ebeb863 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,6 +66,7 @@ debug = false panic = "unwind" lto = true codegen-units = 1 +strip = true [profile.bench] opt-level = 3 diff --git a/Dockerfile b/Dockerfile index b554bc1..a1bf304 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ COPY . . RUN cargo build --locked --release RUN mkdir -p build-out/ RUN cp target/release/rustypaste build-out/ -RUN strip build-out/rustypaste FROM scratch WORKDIR /app