Dockerfile 508 B

1234567891011121314151617181920
  1. FROM rust:1.82.0 AS build
  2. # Install OS packages
  3. RUN apt-get update && apt-get install --yes \
  4. build-essential curl clang libssl-dev protobuf-compiler
  5. # Build
  6. WORKDIR /src
  7. COPY apps/hermes/server apps/hermes/server
  8. COPY pythnet/pythnet_sdk pythnet/pythnet_sdk
  9. WORKDIR /src/apps/hermes/server
  10. RUN --mount=type=cache,target=/root/.cargo/registry cargo build --release
  11. FROM rust:1.82.0
  12. # Copy artifacts from other images
  13. COPY --from=build /src/apps/hermes/server/target/release/hermes /usr/local/bin/