pyth-crosschain/apps/fortuna/Dockerfile

22 lines
540 B
Docker

ARG RUST_VERSION=1.66.1
FROM rust:${RUST_VERSION} AS build
# Set default toolchain
RUN rustup default nightly-2023-07-23
# Build
WORKDIR /src
COPY apps/fortuna apps/fortuna
COPY pythnet pythnet
COPY target_chains/ethereum/entropy_sdk/solidity/abis target_chains/ethereum/entropy_sdk/solidity/abis
WORKDIR /src/apps/fortuna
RUN --mount=type=cache,target=/root/.cargo/registry cargo build --release
FROM rust:${RUST_VERSION}
# Copy artifacts from other images
COPY --from=build /src/apps/fortuna/target/release/fortuna /usr/local/bin/