blob: f19de93247c4995ed6a99f70e5451bec4e33f10f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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" ]
|