-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
44 lines (40 loc) · 1.34 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
FROM pandoc/latex:latest
# Install latex libraries
RUN tlmgr update --self \
&& tlmgr install pdfpages \
&& tlmgr install tocloft \
&& tlmgr install emptypage \
&& tlmgr install footmisc \
&& tlmgr install titlesec \
&& tlmgr install wallpaper \
&& tlmgr install roboto \
&& tlmgr install incgraph \
&& tlmgr install tcolorbox \
&& tlmgr install environ \
&& tlmgr install eso-pic \
&& tlmgr install datatool
RUN apk add sed
RUN apk add ghostscript
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/opt/calibre/lib
ENV PATH $PATH:/opt/calibre/bin
ENV CALIBRE_INSTALLER_SOURCE_CODE_URL https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py
RUN apk update && \
apk add --no-cache --upgrade \
bash \
ca-certificates \
gcc \
mesa-gl \
python3 \
qt5-qtbase-x11 \
wget \
xdg-utils \
xz && \
wget -O- ${CALIBRE_INSTALLER_SOURCE_CODE_URL} | python3 -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main(install_dir='/opt', isolated=True)" && \
rm -rf /tmp/calibre-installer-cache
RUN which calibre
# Install JetBrains Mono font
RUN mkdir -p /usr/share/fonts/
COPY src/JetBrains_Mono/static/*.ttf /usr/share/fonts/
COPY src/Roboto/*.ttf /usr/share/fonts/
RUN fc-cache -f && rm -rf /var/cache/*
ENTRYPOINT ["sh"]