Skip to content

Commit

Permalink
Update Dockerfile (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAWM authored Oct 3, 2023
1 parent 280f546 commit 3e903ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,23 @@ WORKDIR /builder
COPY Cargo.toml .
COPY rust-toolchain.toml .
COPY src ./src
COPY cli ./cli
COPY benches ./benches
COPY externals ./externals

# build offchain binary
WORKDIR /builder/cli
RUN cargo build --release
RUN cp target/release/cli /bins/cli_offchain
RUN cp target/release/ityfuzz /bins/cli_offchain

# build onchain binary
RUN sed -i -e 's/"cmp"/"cmp","flashloan_v2"/g' ../Cargo.toml
RUN cargo build --release
RUN cp target/release/cli /bins/cli_onchain
RUN cp target/release/ityfuzz /bins/cli_onchain

RUN sed -i -e 's/"deployer_is_attacker"/"print_logs"/g' ../Cargo.toml
RUN sed -i -e 's/"print_txn_corpus",//g' ../Cargo.toml
RUN sed -i -e 's/"full_trace",//g' ../Cargo.toml
RUN cargo build --release
RUN cp target/release/cli /bins/cli_print_logs
RUN cp target/release/ityfuzz /bins/cli_print_logs

FROM run_environment
WORKDIR /app
Expand Down

0 comments on commit 3e903ea

Please sign in to comment.