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" panic = "unwind"
lto = true lto = true
codegen-units = 1 codegen-units = 1
strip = true
[profile.bench] [profile.bench]
opt-level = 3 opt-level = 3

View file

@ -11,7 +11,6 @@ COPY . .
RUN cargo build --locked --release RUN cargo build --locked --release
RUN mkdir -p build-out/ RUN mkdir -p build-out/
RUN cp target/release/rustypaste build-out/ RUN cp target/release/rustypaste build-out/
RUN strip build-out/rustypaste
FROM scratch FROM scratch
WORKDIR /app WORKDIR /app