Dockerfile 467 B

123456789101112131415161718
  1. ARG RUST_VERSION=1.82.0
  2. FROM rust:${RUST_VERSION} AS build
  3. # Build
  4. WORKDIR /src
  5. COPY apps/argus apps/argus
  6. COPY pythnet pythnet
  7. COPY target_chains/ethereum/entropy_sdk/solidity/abis target_chains/ethereum/entropy_sdk/solidity/abis
  8. WORKDIR /src/apps/argus
  9. RUN --mount=type=cache,target=/root/.cargo/registry cargo build --release
  10. FROM rust:${RUST_VERSION}
  11. # Copy artifacts from other images
  12. COPY --from=build /src/apps/argus/target/release/argus /usr/local/bin/