-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
55 lines (54 loc) · 1.61 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
FROM debian:bullseye-slim
# Set LANG to UTF-8
ENV LANG C.UTF-8
# Enable contrib repo
RUN sed -i "s#deb http://deb.debian.org/debian bullseye main#deb http://deb.debian.org/debian bullseye main contrib#g" /etc/apt/sources.list
RUN apt-get update && apt-get -y install openjdk-17-jdk-headless \
fonts-dejavu \
fonts-junicode \
fonts-linuxlibertine \
fonts-noto \
fonts-noto-cjk \
fonts-noto-cjk-extra \
rename \
rsync \
wget \
curl \
ant \
ant-contrib \
git \
libxml2 \
libxml2-utils \
tidy \
devscripts \
xsltproc \
debhelper \
trang \
jing \
texlive-xetex \
texlive-latex-extra \
texlive-fonts-recommended \
libexpat-dev \
tree \
xzdec
RUN apt-get --no-install-recommends -y install asciidoc
RUN apt-get install -y asciidoc-doc docbook-xml docbook-xsl
RUN git clone https://github.com/hartwork/rnv.git rnv && \
cd rnv && \
./bootstrap && \
./configure && \
make && \
make install && \
rm -rf rnv
# Stylesheets Saxon is older, so get latest
RUN wget -O SaxonHE11.zip https://downloads.sourceforge.net/project/saxon/Saxon-HE/11/Java/SaxonHE11-4J.zip; \
unzip -d SaxonHE11 SaxonHE11.zip; \
mv SaxonHE11/saxon-he-11.4.jar /usr/share/java/; \
mkdir /usr/share/java/saxon-11; \
cp SaxonHE11/lib/*.jar /usr/share/java/saxon-11; \
ln -s /usr/share/java/saxon-he-11.4.jar /usr/share/java/saxon-he-11.jar; \
echo "#! /bin/bash" > /usr/local/bin/saxon \
&& echo "java -cp /usr/share/java/saxon-11/*:/usr/share/java/saxon-he-11.jar net.sf.saxon.Transform \$*" >> /usr/local/bin/saxon \
&& chmod 755 /usr/local/bin/saxon
WORKDIR /
ENTRYPOINT ["bash"]