mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-02-05 03:25:33 +00:00
ping/rust/Dockerfile: Build in debug mode instead of release mode (#50)
This commit is contained in:
parent
3d51093f23
commit
b97b36aa27
@ -14,7 +14,7 @@ RUN cd ./plan/ && \
|
|||||||
cargo update --dry-run && \
|
cargo update --dry-run && \
|
||||||
cargo fetch && \
|
cargo fetch && \
|
||||||
# use a default feature to rely on docker caching.
|
# use a default feature to rely on docker caching.
|
||||||
cargo build --release --features "libp2pv0450"
|
cargo build --features "libp2pv0450"
|
||||||
|
|
||||||
ARG CARGO_PATCH=""
|
ARG CARGO_PATCH=""
|
||||||
ARG CARGO_REMOVE=""
|
ARG CARGO_REMOVE=""
|
||||||
@ -28,7 +28,7 @@ RUN cp ./plan/Cargo.toml ./plan/Cargo.lock /tmp/
|
|||||||
COPY ./plan/${PLAN_PATH} ./plan
|
COPY ./plan/${PLAN_PATH} ./plan
|
||||||
|
|
||||||
# This is in order to make sure `main.rs`s mtime timestamp is updated to avoid the dummy `main`
|
# 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
|
# https://github.com/rust-lang/cargo/issues/9598
|
||||||
RUN touch ./plan/src/main.rs
|
RUN touch ./plan/src/main.rs
|
||||||
|
|
||||||
@ -37,10 +37,10 @@ RUN mv /tmp/Cargo.toml /tmp/Cargo.lock ./plan
|
|||||||
ARG CARGO_FEATURES=""
|
ARG CARGO_FEATURES=""
|
||||||
|
|
||||||
RUN cd ./plan/ && \
|
RUN cd ./plan/ && \
|
||||||
cargo build --release --features="${CARGO_FEATURES}"
|
cargo build --features="${CARGO_FEATURES}"
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
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
|
EXPOSE 6060
|
||||||
ENV RUST_BACKTRACE=1
|
ENV RUST_BACKTRACE=1
|
||||||
ENTRYPOINT ["testplan"]
|
ENTRYPOINT ["testplan"]
|
Loading…
x
Reference in New Issue
Block a user