-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
58 lines (52 loc) · 1.79 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
FROM ubuntu:xenial
MAINTAINER Jeremy Nicklas <[email protected]>
# Set up requirements
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get install --yes --no-install-recommends \
default-jre \
graphviz \
python \
ghostscript \
texlive \
texlive-fonts-recommended \
texlive-font-utils \
texlive-lang* \
texlive-latex-extra \
texlive-latex-recommended \
build-essential \
wget \
&& apt-get autoremove -y \
&& rm -fr /var/cache/* \
&& rm -fr /var/lib/apt/lists/*
# Patch for bug in `titlesec`
# see: http://tex.stackexchange.com/questions/299969/titlesec-loss-of-section-numbering-with-the-new-update-2016-03-15
RUN wget -O /usr/share/texlive/texmf-dist/tex/latex/titlesec/titlesec.sty "http://mirrors.ctan.org/macros/latex/contrib/titlesec/titlesec.sty"
# Install PlantUML
RUN wget -O /opt/plantuml.jar "https://sourceforge.net/projects/plantuml/files/plantuml.jar" --no-check-certificate \
&& printf '#!/bin/sh -e\njava -jar /opt/plantuml.jar "$@"' > /usr/local/bin/plantuml \
&& chmod 755 /usr/local/bin/plantuml
# Install Sphinx and extras
RUN wget -O /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" \
&& python /tmp/get-pip.py \
&& rm /tmp/get-pip.py \
&& pip install Sphinx \
alabaster \
sphinx_bootstrap_theme \
sphinx_rtd_theme \
recommonmark \
sphinx-autobuild \
sphinx-prompt \
sphinxcontrib-actdiag \
sphinxcontrib-blockdiag \
sphinxcontrib-nwdiag \
sphinxcontrib-seqdiag \
sphinxcontrib-plantuml \
sphinxcontrib-exceltable \
sphinxcontrib-googleanalytics \
sphinxcontrib-googlechart \
sphinxcontrib-googlemaps \
sphinxcontrib-httpdomain
# Stop Java from writing files in documentation source
ENV HOME /home
ENV _JAVA_OPTIONS -Duser.home=${HOME}
WORKDIR /doc