Dockerfile 540 B

123456789101112131415161718192021
  1. ARG RUST_VERSION=1.66.1
  2. FROM rust:${RUST_VERSION} AS build
  3. # Set default toolchain
  4. RUN rustup default nightly-2023-07-23
  5. # Build
  6. WORKDIR /src
  7. COPY apps/fortuna apps/fortuna
  8. COPY pythnet pythnet
  9. COPY target_chains/ethereum/entropy_sdk/solidity/abis target_chains/ethereum/entropy_sdk/solidity/abis
  10. WORKDIR /src/apps/fortuna
  11. RUN --mount=type=cache,target=/root/.cargo/registry cargo build --release
  12. FROM rust:${RUST_VERSION}
  13. # Copy artifacts from other images
  14. COPY --from=build /src/apps/fortuna/target/release/fortuna /usr/local/bin/