Skip to content

Commit

Permalink
test: Use release build
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradeveloper committed May 25, 2024
1 parent a9b7de3 commit 2853431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ FROM chef AS builder
COPY --from=planner /work/recipe.json recipe.json
RUN cargo chef cook --recipe-path recipe.json
COPY . .
RUN RUSTFLAGS="--cfg tokio_unstable" cargo build
RUN RUSTFLAGS="--cfg tokio_unstable" cargo build --release

FROM rust:1.78-slim-bookworm AS runtime
EXPOSE 50000
EXPOSE 6669
COPY --from=builder /work/target/debug/testapp ./
COPY --from=builder /work/target/release/testapp ./
ENTRYPOINT ["./testapp"]

0 comments on commit 2853431

Please sign in to comment.