FROM rust:latest as builder WORKDIR /builder COPY Cargo.toml Cargo.lock /builder/ COPY src /builder/src RUN cargo build --release FROM python:3.12-slim WORKDIR /app RUN mkdir -p /app/target/release COPY --from=builder /builder/target/release/exploit /app/target/release/exploit COPY requirements.txt /app/ COPY avala-client-0.1.0.tar.gz /app/ RUN pip3 install -r requirements.txt RUN pip3 install ./avala-client-0.1.0.tar.gz COPY client.py /app/ COPY exploits /app/exploits CMD [ "python", "./client.py" ]