forked from merklebloom/bookbuilder
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
88 lines (77 loc) · 1.99 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# derived from asciidoctor/docker-asciidoctor by merklebloom and @aantonop
FROM alpine:3.7
LABEL MAINTAINERS="Andreas M. Antonopoulos @aantonop"
# Installing package required for the runtime of
# any of the asciidoctor-* functionnalities
RUN apk add --no-cache \
bash \
curl \
ca-certificates \
findutils \
font-bakoma-ttf \
graphviz \
git \
inotify-tools \
make \
openjdk8-jre \
py3-pillow \
py-setuptools \
python3 \
ruby \
ruby-mathematical \
ttf-liberation \
ttf-dejavu \
unzip \
which \
zlib-dev \
imagemagick
# Installing Python dependencies for additional
# functionnalities as diagrams or syntax highligthing
RUN apk add --no-cache --virtual .pythonmakedepends \
build-base \
python3-dev \
py3-pip \
&& pip3 install --upgrade pip \
&& pip3 install --no-cache-dir \
actdiag \
'blockdiag[pdf]' \
nwdiag \
Pygments \
seqdiag \
transifex-client \
&& apk del -r --no-cache .pythonmakedepends
ARG asciidoctor_version=2.0.10
ARG asciidoctor_pdf_version=1.5.3
ARG asciidoctor_epub_version=1.5.0.alpha.17
ENV ASCIIDOCTOR_VERSION=${asciidoctor_version} \
ASCIIDOCTOR_PDF_VERSION=${asciidoctor_pdf_version} \
ASCIIDOCTOR_EPUB_VERSION=${asciidoctor_epub_version}
# Installing Ruby Gems needed in the image
# including asciidoctor itself
RUN apk add --no-cache --virtual .rubymakedepends \
build-base \
libxml2-dev \
ruby-dev \
&& gem install --no-document \
"asciidoctor:${ASCIIDOCTOR_VERSION}" \
asciidoctor-confluence \
"asciidoctor-epub3:${ASCIIDOCTOR_EPUB_VERSION}" \
asciidoctor-mathematical \
asciimath \
"asciidoctor-pdf:${ASCIIDOCTOR_PDF_VERSION}" \
asciidoctor-revealjs \
coderay \
epubcheck:3.0.1 \
haml \
kindlegen:3.0.3 \
pygments.rb \
rake \
rouge \
slim \
thread_safe \
tilt \
&& apk del -r --no-cache .rubymakedepends
RUN echo "umask 0000" > /root/.bashrc
WORKDIR /documents
VOLUME /documents
CMD ["/bin/bash"]