This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
forked from liquidz/docker-asciidoctor-jp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
31 lines (28 loc) · 1.4 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
FROM asciidoctor/docker-asciidoctor
LABEL MAINTAINER Hitoshi TAKEUCHI <[email protected]>
ENV COMPASS_VERSION 0.12.7
ENV ZURB_FOUNDATION_VERSION 4.3.2
ENV MERMAID_VERSION 7.0.9
WORKDIR /root
RUN gem install asciidoctor-pdf-cjk-kai_gen_gothic --no-ri --no-rdoc && \
gem install --version ${COMPASS_VERSION} compass --no-ri --no-rdoc && \
gem install --version ${ZURB_FOUNDATION_VERSION} zurb-foundation --no-ri --no-rdoc && \
asciidoctor-pdf-cjk-kai_gen_gothic-install && \
ln -fs /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
apk add --no-cache nodejs nodejs-npm ca-certificates openssl && \
rm -rf /tmp/* /var/tmp/* && \
wget -O VLGothic.zip "http://osdn.jp/frs/redir.php?m=jaist&f=%2Fvlgothic%2F62375%2FVLGothic-20141206.zip" && \
unzip VLGothic.zip && \
mkdir -p /root/.fonts && \
cp VLGothic/VL-Gothic-Regular.ttf /root/.fonts && \
rm -rf /root/VLGothic* && \
wget -qO- "https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized-phantomjs.tar.gz" | tar xz -C / && \
npm install -g phantomjs mermaid@${MERMAID_VERSION} && \
wget https://github.com/asciidoctor/asciidoctor-stylesheet-factory/archive/master.zip && \
unzip master.zip && \
cd asciidoctor-stylesheet-factory-master && \
compass compile && \
cp -pr stylesheets / && \
cd .. && \
rm -rf master.zip asciidoctor-stylesheet-factory-master
WORKDIR /documents