-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
125 lines (113 loc) · 3.47 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
FROM debian:12-slim
RUN apt update && \
apt install -y autoconf \
bison \
build-essential \
libssl-dev \
libyaml-dev \
libreadline6-dev \
zlib1g-dev \
libncurses5-dev \
libffi-dev \
libgdbm6 \
libgdbm-dev \
libdb-dev \
locales \
git-core \
unzip \
fontconfig \
apt-utils \
bash \
curl \
sudo \
libatk-bridge2.0-0 libgtk-3-0 libasound2 && \
apt clean
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen en_US.UTF-8 && update-locale en_US.UTF-8
ENV LANG en_US.UTF-8
RUN apt install -y --no-install-recommends \
texlive-plain-generic \
texlive-lang-japanese \
texlive-lang-cyrillic \
texlive-lang-greek \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
lmodern \
fonts-lmodern \
tex-gyre \
texlive-pictures \
texlive-luatex \
texlive-xetex \
fonts-noto-cjk \
fonts-noto-cjk-extra \
fonts-ipafont \
pandoc && \
apt clean
RUN mkdir -p /usr/share/man/man1 && \
texhash && mktexlsr && luaotfload-tool --update && \
kanji-config-updmap-sys --jis2004 noto-otc && \
apt install -y --no-install-recommends \
ghostscript \
gsfonts \
zip \
mecab \
mecab-ipadic-utf8 \
libmecab-dev \
file \
xz-utils \
poppler-data \
graphviz \
python3 \
python3-setuptools \
python3-pip \
python3-dev \
libjpeg-dev \
default-jre \
librsvg2-bin \
libssl-dev \
libreadline-dev \
sudo \
cron \
libcairo2-dev \
libffi-dev \
zlib1g-dev && \
apt clean
RUN git clone https://github.com/rbenv/ruby-build.git && \
PREFIX=/usr/local ./ruby-build/install.sh && \
ruby-build 3.2.3 /usr/local
RUN echo 'gem: --no-rdoc --no-ri' >> /.gemrc && \
gem update && \
gem install pandoc2review
RUN which pandoc2review
RUN pip3 install sphinx \
sphinxcontrib-blockdiag \
sphinxcontrib-seqdiag \
sphinxcontrib-actdiag \
sphinxcontrib-nwdiag \
sphinxcontrib-plantuml \
pillow \
anshitsu \
blockdiag \
blockdiag[pdf] \
reportlab \
svglib \
svgutils \
cairosvg \
PyPDF2
RUN mkdir /java && \
curl -sL https://sourceforge.net/projects/plantuml/files/plantuml.jar \
> /java/plantuml.jar
RUN apt install -y gnupg && apt clean && \
curl -sL https://deb.nodesource.com/setup_lts.x | bash - && \
apt install -y nodejs && apt-get clean && \
npm install -g yarn textlint-plugin-review \
textlint-rule-preset-japanese \
textlint-rule-general-novel-style-ja \
@vivliostyle/cli
RUN git clone https://github.com/neologd/mecab-ipadic-neologd.git && \
cd mecab-ipadic-neologd && \
sudo bin/install-mecab-ipadic-neologd -y && \
sudo echo dicdir = /usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd > /etc/mecabrc
RUN mkdir /docs
WORKDIR /docs