55 lines
1.5 KiB
Docker
55 lines
1.5 KiB
Docker
FROM debian:11.3
|
|
|
|
WORKDIR /docs
|
|
|
|
RUN rm /etc/apt/sources.list
|
|
RUN echo "deb http://mirrors.rd.in.linx/debian/ bullseye main non-free contrib \n\
|
|
deb http://mirrors.rd.in.linx/debian/ bullseye-updates main non-free contrib\n\
|
|
deb http://mirrors.rd.in.linx/debian/ bullseye-backports main non-free contrib\n" > /etc/apt/sources.list
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
python3-pip \
|
|
latexmk \
|
|
texlive-xetex \
|
|
texlive-lang-chinese \
|
|
latex-cjk-all \
|
|
python3-pygments \
|
|
fonts-freefont-otf \
|
|
git \
|
|
xindy \
|
|
python3-dev \
|
|
zlib1g-dev \
|
|
libjpeg-dev \
|
|
node-mermaid \
|
|
apt-utils \
|
|
sshpass \
|
|
wget \
|
|
bash \
|
|
npm \
|
|
libgbm1 \
|
|
libasound2 \
|
|
locales \
|
|
graphviz \
|
|
gnuplot
|
|
RUN apt-get autoremove \
|
|
&& apt-get clean \
|
|
&& rm /var/cache/apt/archives/*.deb /root/.cache/ /var/lib/apt/lists/* -rf
|
|
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple
|
|
RUN pip3 install sphinx \
|
|
sphinxcontrib-mermaid \
|
|
sphinxcontrib-tikz \
|
|
sphinx_rtd_theme \
|
|
docxbuilder \
|
|
docxbuilder[math] \
|
|
sphinxcontrib-bibtex \
|
|
sphinxcontrib-blockdiag \
|
|
sphinxcontrib-plot
|
|
RUN pip3 install git+http://gitlab.rd.in.linx/GNU/linuxdoc.git
|
|
RUN npm config set registry https://registry.npm.taobao.org
|
|
RUN cd /usr/local/; npm install @mermaid-js/mermaid-cli
|
|
RUN mkdir /usr/local/etc/mermaid
|
|
ADD mermaid/config.json /usr/local/etc/mermaid/config.json
|
|
ADD mermaid/puppeteer-config.json /usr/local/etc/mermaid/puppeteer-config.json
|
|
ENV PS1='Sphinx-builder#'
|