-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (40 loc) · 1.04 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
FROM debian:buster
ENV DEBIAN_FRONTEND noninteractive
# Install all TeX and LaTeX dependences
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
make \
ca-certificates \
lmodern \
texlive-latex-base \
texlive-generic-extra \
texlive-fonts-extra \
texlive-fonts-recommended \
texlive-generic-recommended \
texlive-lang-english \
# latex-xcolor \
# texlive-math-extra \
texlive-latex-extra \
texlive-bibtex-extra \
texlive-full \
fonts-freefont-ttf \
fonts-freefont-otf \
fonts-roboto \
fonts-roboto-fontface \
biber \
fontconfig \
texlive-xetex \
cabextract \
xfonts-utils \
libimage-exiftool-perl
RUN apt-get autoclean && apt-get --purge --yes autoremove && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# install fonts
COPY fonts/lato/* /usr/local/share/fonts/
COPY fonts/raleway/* /usr/local/share/fonts/
RUN fc-cache
# remove PDF policy to avoid error
RUN sed -i '/<policy .*pattern="PDF" \/>/d' /etc/ImageMagick-6/policy.xml
# Export the output data
WORKDIR /data
VOLUME ["/data"]