Merge remote-tracking branch 'origin/main'

This commit is contained in:
DJMrTV 2025-03-07 15:16:37 +01:00
commit 325fa15437
2 changed files with 10 additions and 3 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 prod
RUN rm .env RUN rm .env
@ -15,7 +15,7 @@ FROM rust:alpine AS final
WORKDIR /app WORKDIR /app
# Copy the compiled binary from the builder stage # Copy the compiled binary from the builder stage
COPY --from=builder /app/target/release/account /app/account COPY --from=builder /app/target/prod/account /app/account
# Set executable permissions # Set executable permissions
RUN chmod +x /app/account RUN chmod +x /app/account