# syntax=docker/dockerfile:1 FROM python:3.10 WORKDIR /app/ RUN apt-get update RUN apt-get install -y python3-sphinx node.js RUN apt-get install -y npm RUN npm install -g http-server RUN pip install pydata-sphinx-theme RUN pip install git+https://gitea.parrrate.ru/PTV/rainbowadn.git@e9fba7b064902ceedee0dd5578cb47030665a6aa RUN mkdir /app/docs/ RUN mkdir /app/docs/build/ RUN mkdir /app/docs/build/html/ WORKDIR /app/legacy/ RUN git clone --branch 1.0 https://gitea.parrrate.ru/PTV/ptvp35.git WORKDIR /app/legacy/ptvp35/ RUN python traced_example.py > traced_example.txt RUN python traced_example.py all > traced_example_all.txt RUN cp -r docs/source/ ./source/ RUN cp docs/Makefile ./Makefile RUN make html RUN cp -r /app/legacy/ptvp35/build/html/ /app/docs/build/html/1.0/ RUN git reset --hard RUN git fetch && git checkout 1.1rc0 WORKDIR /app/legacy/ptvp35/docs/ RUN make html RUN cp -r /app/legacy/ptvp35/docs/build/html/ /app/docs/build/html/1.1rc0/ RUN rm -r /app/legacy/ptvp35/docs/build/ WORKDIR /app/legacy/ptvp35/ WORKDIR /app/ COPY docs/Makefile docs/Makefile COPY setup.py setup.py COPY traced_example.py traced_example.py COPY ptvp35 ptvp35 COPY docs/source docs/source WORKDIR /app/docs/ RUN make html WORKDIR /app/docs/build/html/ CMD [ "http-server", "-p", "80" ]