Skip to content

Commit

Permalink
chore: optimize build
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaBosak233 committed Dec 21, 2024
1 parent 3fbdf71 commit 5ec24ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,11 @@ sysinfo = { version = "0.32.1" }
tempfile = { version = "3.14.0" }
image = { version = "0.25.5" }
webp = { version = "0.3.0", features = ["image"] }
hex = "0.4.3"
hex = "0.4.3"

[profile.release]
opt-level = 3
strip = true
lto = "thin"
panic = "abort"
codegen-units = 1
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ RUN apt update && apt install -y musl-tools musl-dev pkg-config

RUN cargo build --release --target x86_64-unknown-linux-musl

RUN strip target/x86_64-unknown-linux-musl/release/cdsctf

FROM alpine:latest

WORKDIR /app
Expand Down

0 comments on commit 5ec24ad

Please sign in to comment.