FROM python:3.11 as metrics-base WORKDIR /code/ FROM metrics-base as metrics-tmg RUN git clone https://github.com/OnGoTeam/TMGmod.git WORKDIR /code/TMGmod/ RUN git fetch && git checkout 82db35f2db92572c98d84ef781f64f8d65d2f023 ENV SRCDIR="build/src" ENV SRCPATTERN="*.cs" FROM metrics-base as metrics-radn RUN git clone https://gitea.parrrate.ru/PTV/radn-rs.git WORKDIR /code/radn-rs/ RUN git fetch && git checkout a60e4f09e0463b3b2fc0f91b21c9928d98d03213 FROM metrics-base as metrics-mdbook RUN git clone https://github.com/rust-lang/mdBook.git WORKDIR /code/mdBook/ RUN git fetch && git checkout 904aa530b5f59387f19feb0dbe0e959de3f247d2 FROM metrics-base as metrics-rustup RUN git clone https://github.com/rust-lang/rustup.git WORKDIR /code/rustup/ RUN git fetch && git checkout 849adb7c1b8c97e4145e350a934c3a665f61798e FROM metrics-radn as metrics COPY metrics.py /code/metrics.py 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