From b97b36aa2754c77795635facbf96c8504bdd9135 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Fri, 4 Nov 2022 18:05:27 +0100 Subject: [PATCH] ping/rust/Dockerfile: Build in debug mode instead of release mode (#50) --- ping/rust/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ping/rust/Dockerfile b/ping/rust/Dockerfile index 57e2099..e296a8d 100644 --- a/ping/rust/Dockerfile +++ b/ping/rust/Dockerfile @@ -14,7 +14,7 @@ RUN cd ./plan/ && \ cargo update --dry-run && \ cargo fetch && \ # use a default feature to rely on docker caching. - cargo build --release --features "libp2pv0450" + cargo build --features "libp2pv0450" ARG CARGO_PATCH="" ARG CARGO_REMOVE="" @@ -28,7 +28,7 @@ RUN cp ./plan/Cargo.toml ./plan/Cargo.lock /tmp/ COPY ./plan/${PLAN_PATH} ./plan # This is in order to make sure `main.rs`s mtime timestamp is updated to avoid the dummy `main` -# remaining in the release binary. +# remaining in the binary. # https://github.com/rust-lang/cargo/issues/9598 RUN touch ./plan/src/main.rs @@ -37,10 +37,10 @@ RUN mv /tmp/Cargo.toml /tmp/Cargo.lock ./plan ARG CARGO_FEATURES="" RUN cd ./plan/ && \ - cargo build --release --features="${CARGO_FEATURES}" + cargo build --features="${CARGO_FEATURES}" FROM debian:bullseye-slim -COPY --from=builder /usr/src/testplan/plan/target/release/testplan /usr/local/bin/testplan +COPY --from=builder /usr/src/testplan/plan/target/debug/testplan /usr/local/bin/testplan EXPOSE 6060 ENV RUST_BACKTRACE=1 ENTRYPOINT ["testplan"] \ No newline at end of file