-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
51 lines (47 loc) · 1.43 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
FROM debian:buster-slim
RUN mkdir -p /usr/src/app
COPY *.md *.py *.tex *.html /usr/src/app/
COPY texlive.profile /tmp/texlive.profile
ENV PATH="/usr/local/texlive/2020/bin/x86_64-linux:${PATH}"
WORKDIR /usr/src/app
RUN export INSTALL_PACKAGES="build-essential curl fontconfig perl python3-dev python3-setuptools subversion" &&\
export PACKAGES="libffi-dev libfontconfig1 python3 tar" &&\
apt-get update -qq &&\
apt-get upgrade -qq &&\
apt-get install -qq $INSTALL_PACKAGES $PACKAGES &&\
svn export https://github.com/ETCBC/bhsa/trunk/tf/c /bhsa/c &&\
cd /tmp &&\
curl -L http://mirrors.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | tar xz &&\
cd install-tl-* &&\
./install-tl -repository http://mirrors.ctan.org/systems/texlive/tlnet -profile /tmp/texlive.profile &&\
cd .. &&\
rm -rf install-tl-* &&\
tlmgr install \
atbegshi \
bidi \
etexcmds \
geometry \
graphics \
kvdefinekeys \
kvsetkeys \
lm \
ltxcmds \
oberdiek \
polyglossia \
relsize \
setspace \
tools \
xetex \
zref &&\
mktexfmt xelatex.fmt &&\
curl -H 'User-Agent: stop checking' -L http://www.sbl-site.org/Fonts/SBL_Hbrw.ttf > /usr/local/share/fonts/SBL_Hbrw.ttf &&\
fc-cache &&\
cd /usr/src/app &&\
python3 setup.py install &&\
mkdir data &&\
./collectcontexts.py --bhsa /bhsa --module c &&\
apt-get remove -qq $INSTALL_PACKAGES &&\
apt-get -qq autoremove &&\
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["./hebrewreaderserver.py"]
CMD []