docs(build): custom docker image to build docs
This commit is contained in:
parent
5ef431b3af
commit
1627e95c7d
1 changed files with 21 additions and 2 deletions
|
|
@ -1,5 +1,24 @@
|
|||
FROM sphinxdoc/sphinx
|
||||
FROM python:3.12.0-bullseye
|
||||
|
||||
WORKDIR /project
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends --yes \
|
||||
curl \
|
||||
zip \
|
||||
graphviz \
|
||||
imagemagick \
|
||||
make \
|
||||
&& apt-get autoremove \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN \
|
||||
python3 -m pip install --no-cache-dir --upgrade pip && \
|
||||
python3 -m pip install --no-cache-dir Sphinx Pillow
|
||||
|
||||
ADD requirements_docs.txt /project
|
||||
RUN pip3 install -r requirements_docs.txt
|
||||
RUN \
|
||||
python3 -m pip install -r requirements_docs.txt
|
||||
|
||||
CMD ["sphinx-build", "-M", "html", ".", "_build"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue