-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
69 lines (61 loc) · 2.71 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#
# ddidier/sphinx-doc
#
# A Docker image for the Sphinx documentation builder (http://sphinx-doc.org).
#
# docker build -t ddidier/sphinx-doc .
FROM python:3.6.8-slim-stretch
MAINTAINER David DIDIER
# OpenJDK installation issue
# - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199
# - mkdir -p /usr/share/man/man1
RUN mkdir -p /usr/share/man/man1 \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
gosu sudo \
curl make \
dvipng graphviz \
openjdk-8-jre-headless \
latexmk texlive-fonts-recommended texlive-latex-extra texlive-latex-recommended \
texlive-lang-french \
git \
\
&& PLANTUML_VERSION=1.2019.0 \
&& mkdir /opt/plantuml \
&& curl https://netix.dl.sourceforge.net/project/plantuml/${PLANTUML_VERSION}/plantuml.${PLANTUML_VERSION}.jar --output /opt/plantuml/plantuml.${PLANTUML_VERSION}.jar \
&& ln -s /opt/plantuml/plantuml.${PLANTUML_VERSION}.jar /opt/plantuml/plantuml.jar \
\
&& pip install 'Sphinx == 1.8.4' \
'alabaster == 0.7.12' \
'gitpython == 2.1.11' \
'guzzle_sphinx_theme == 0.7.11' \
'livereload == 2.5.2' \
'recommonmark == 0.4.0' \
'rinohtype == 0.2.1' \
'sphinx-autobuild == 0.7.1' \
'sphinx_bootstrap_theme == 0.6.5' \
'sphinx-prompt == 1.0.0' \
'sphinx_rtd_theme == 0.4.2' \
'sphinxcontrib-actdiag == 0.8.5' \
'sphinxcontrib-blockdiag == 1.5.5' \
'sphinxcontrib-excel-table == 1.0.4' \
'sphinxcontrib-fulltoc == 1.2.0' \
'sphinxcontrib-googleanalytics == 0.1' \
'sphinxcontrib-googlechart == 0.2.1' \
'sphinxcontrib-googlemaps == 0.1.0' \
'sphinxcontrib-nwdiag == 0.9.5' \
'sphinxcontrib-plantuml == 0.14' \
'sphinxcontrib-seqdiag == 0.8.5' \
\
&& apt-get autoremove -y \
&& rm -rf /var/cache/* \
&& rm -rf /var/lib/apt/lists/*
COPY files/opt/ddidier/sphinx/python/* /opt/ddidier/sphinx/python/
COPY files/usr/local/bin/* /usr/local/bin/
COPY files/usr/share/ddidier/* /usr/share/ddidier/
RUN chown root:root /usr/local/bin/* \
&& chmod 755 /usr/local/bin/*
ENV DATA_DIR=/doc
WORKDIR $DATA_DIR
ENTRYPOINT ["/usr/local/bin/docker-entrypoint"]