chore(bin): strip the binary symbols with an option in Cargo.toml

This commit is contained in:
Orhun Parmaksız 2023-01-30 21:07:37 +03:00
parent c5389a1200
commit e013ac26bd
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
2 changed files with 1 additions and 1 deletions

View file

@ -66,6 +66,7 @@ debug = false
panic = "unwind"
lto = true
codegen-units = 1
strip = true
[profile.bench]
opt-level = 3

View file

@ -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