forked from madduci/docker-asciidoctor-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (33 loc) · 1.03 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
FROM alpine:latest
LABEL maintainer="Michele Adduci <[email protected]>"
VOLUME ["/document"]
RUN apk update && \
apk --update add \
ruby \
ruby-dev \
ruby-irb \
ruby-rake \
ruby-io-console \
ruby-bigdecimal \
ruby-json \
ruby-bundler \
libstdc++ \
curl \
tzdata \
build-base \
libxml2-dev \
libxslt-dev \
postgresql-dev \
bash && \
echo 'gem: --no-document' > /etc/gemrc && \
gem install --no-ri --no-rdoc nokogiri && \
gem install --no-ri --no-rdoc asciidoctor-diagram && \
gem install --no-ri --no-rdoc asciidoctor-pdf --version 1.5.0.beta.8 && \
gem install --no-ri --no-rdoc asciidoctor-pdf-cjk && \
gem install --no-ri --no-rdoc coderay pygments.rb thread_safe && \
gem install --no-ri --no-rdoc slim && \
gem install --no-ri --no-rdoc concurrent-ruby && \
gem install --no-ri --no-rdoc haml tilt && \
apk del curl ruby-bundler postgresql-dev build-base make gcc g++ && \
rm -rf /var/cache/apk/*
ENTRYPOINT ["asciidoctor-pdf"]