feat(build): add prod target

This commit is contained in:
Tim Nebel 2025-03-07 11:47:31 +00:00
commit 19b812ba0a
2 changed files with 9 additions and 2 deletions

View file

@ -3,7 +3,14 @@ name = "account"
version = "0.1.0" version = "0.1.0"
edition = "2024" edition = "2024"
[profile.prod]
inherits = "release"
overflow-checks = false
strip = true
debug = false
debug-assertions = false
lto = true
incremental = false
[dependencies] [dependencies]
rocket = "0.5.1" rocket = "0.5.1"

View file

@ -6,7 +6,7 @@ WORKDIR /app
COPY . . COPY . .
RUN cargo build --release RUN cargo build --profile release-lto
RUN rm .env RUN rm .env