Skip to content

Commit

Permalink
chore(build): enable strip option for release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 16, 2022
1 parent 6bb4f5b commit f70fefd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ debug = false
panic = "unwind"
lto = true
codegen-units = 1
strip = true

[profile.bench]
opt-level = 3
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ COPY --from=cacher /app/target target
COPY --from=cacher $CARGO_HOME $CARGO_HOME
RUN cargo build --release --locked --no-default-features
RUN rm -f target/release/deps/git_cliff*
RUN strip target/release/git-cliff

FROM debian:buster-slim as runner
WORKDIR app
Expand Down

0 comments on commit f70fefd

Please sign in to comment.