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"
|
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"
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --profile release-lto
|
||||||
|
|
||||||
RUN rm .env
|
RUN rm .env
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue