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 54a6912baf715816e3dcbfd074c0e2d7b8c74fe3 RUN python3 /code/metrics.py RUN git fetch && git checkout 936f41735a4f7913e49fb16c44e89901bf703568 RUN python3 /code/metrics.py RUN git fetch && git checkout f13a1382f8781231e01d375a13041884c87ddf0c RUN python3 /code/metrics.py RUN git fetch && git checkout ce65688e47b07f14ef2861971f64296c2197e778 RUN python3 /code/metrics.py RUN git fetch && git checkout 7f1d72898ddd9ab40bf91e553f70a023a64fe647 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