20 lines
641 B
Docker
20 lines
641 B
Docker
# 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
|
|
COPY docs/Makefile Makefile
|
|
COPY setup.py setup.py
|
|
COPY traced_example.py traced_example.py
|
|
COPY ptvp35 ptvp35
|
|
RUN python traced_example.py > traced_example.txt
|
|
RUN python traced_example.py all > traced_example_all.txt
|
|
COPY docs/source source
|
|
RUN make html
|
|
WORKDIR /app/build/html/
|
|
CMD [ "http-server", "-p", "80" ]
|