forked from asciidoctor/docker-asciidoctor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (53 loc) · 2.05 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 fedora
MAINTAINER Guillaume Scheibel <[email protected]>
ENV JAVA_HOME /jdk1.8.0_112
ENV PATH $PATH:$JAVA_HOME/bin:/fopub/bin
ENV BACKENDS /asciidoctor-backends
ENV GVM_AUTO_ANSWER true
ENV ASCIIDOCTOR_VERSION "1.5.5"
RUN dnf install -y tar \
make \
gcc \
ruby \
ruby-devel \
rubygems \
graphviz \
rubygem-nokogiri \
unzip \
findutils \
which \
wget \
python-devel \
zlib-devel \
libjpeg-devel \
redhat-rpm-config \
patch \
&& dnf clean packages \
&& (curl -s -k -L -C - -b "oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz | tar xfz -) \
&& mkdir /fopub \
&& curl -L https://api.github.com/repos/asciidoctor/asciidoctor-fopub/tarball | tar xzf - -C /fopub/ --strip-components=1 \
&& touch /tmp/empty.xml \
&& fopub /tmp/empty.xml \
&& rm /tmp/empty.xml \
&& gem install --no-ri --no-rdoc asciidoctor --version $ASCIIDOCTOR_VERSION \
&& gem install --no-ri --no-rdoc asciidoctor-diagram \
&& gem install --no-ri --no-rdoc asciidoctor-epub3 --version 1.5.0.alpha.6 \
&& gem install --no-ri --no-rdoc asciidoctor-pdf --version 1.5.0.alpha.11 \
&& gem install --no-ri --no-rdoc asciidoctor-confluence \
&& gem install --no-ri --no-rdoc coderay pygments.rb thread_safe epubcheck kindlegen \
&& gem install --no-ri --no-rdoc slim \
&& gem install --no-ri --no-rdoc haml tilt \
&& mkdir $BACKENDS \
&& (curl -LkSs https://api.github.com/repos/asciidoctor/asciidoctor-backends/tarball | tar xfz - -C $BACKENDS --strip-components=1) \
&& wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python \
&& easy_install "blockdiag[pdf]" \
&& easy_install seqdiag \
&& easy_install actdiag \
&& easy_install nwdiag \
&& (curl -s get.sdkman.io | bash) \
&& /bin/bash -c "source /root/.sdkman/bin/sdkman-init.sh" \
&& /bin/bash -c "echo sdkman_auto_answer=true > ~/.sdkman/etc/config" \
&& /bin/bash -c -l "sdk install lazybones"
WORKDIR /documents
VOLUME /documents
CMD ["/bin/bash"]