49 lines
1.4 KiB
Docker
49 lines
1.4 KiB
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3.10
|
|
RUN apt-get update
|
|
RUN apt-get install -y python3-sphinx node.js npm
|
|
RUN npm install -g http-server
|
|
RUN pip install pydata-sphinx-theme
|
|
WORKDIR /app/
|
|
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/
|
|
|
|
RUN git fetch && git checkout 1.1rc2
|
|
WORKDIR /app/legacy/ptvp35/docs/
|
|
RUN make html
|
|
RUN cp -r /app/legacy/ptvp35/docs/build/html/ /app/docs/build/html/1.1rc2/
|
|
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 docs/scripts docs/scripts
|
|
COPY ptvp35 ptvp35
|
|
COPY docs/source docs/source
|
|
WORKDIR /app/docs/
|
|
RUN make html
|
|
WORKDIR /app/docs/build/html/
|
|
CMD [ "http-server", "-p", "80" ]
|