20 lines
566 B
Docker
20 lines
566 B
Docker
FROM rust:1.70 as metrics
|
|
RUN cargo install rust-code-analysis-cli
|
|
WORKDIR /code/
|
|
RUN git clone https://gitea.parrrate.ru/PTV/radn-rs.git
|
|
WORKDIR /code/radn-rs/
|
|
COPY metrics.py /code/metrics.py
|
|
|
|
RUN git fetch && git checkout 664365ba728e5b566b85f4275aef556b2094f606
|
|
RUN python3 /code/metrics.py
|
|
|
|
RUN git fetch && git checkout 82141aa35e01a71f190c1ee83dd467f4153406df
|
|
RUN python3 /code/metrics.py
|
|
|
|
FROM python:3.11
|
|
RUN python3 -m pip install matplotlib
|
|
WORKDIR /code/
|
|
COPY --from=metrics /code/metrics.json metrics.json
|
|
COPY render.py render.py
|
|
RUN python3 render.py
|