feat(build): add prod target
This commit is contained in:
parent
37a3c60a7a
commit
19b812ba0a
2 changed files with 9 additions and 2 deletions
|
|
@ -3,7 +3,14 @@ name = "account"
|
|||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
|
||||
[profile.prod]
|
||||
inherits = "release"
|
||||
overflow-checks = false
|
||||
strip = true
|
||||
debug = false
|
||||
debug-assertions = false
|
||||
lto = true
|
||||
incremental = false
|
||||
|
||||
[dependencies]
|
||||
rocket = "0.5.1"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ WORKDIR /app
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --release
|
||||
RUN cargo build --profile release-lto
|
||||
|
||||
RUN rm .env
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue