forked from latex-g7-32/latex-g7-32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (42 loc) · 1.62 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
FROM alpine:latest AS font-builder
RUN apk --update add openssl wget unzip \
&& rm -rf /var/cache/apk/* \
&& mkdir -p /fonts \
&& cd /fonts \
&& wget http://astralinux.ru/information/fonts-astra/font-ptastra-serif-ver1003.zip \
&& wget http://astralinux.ru/information/fonts-astra/font-ptastrasans-ttf-ver1002.zip \
&& unzip font-ptastra-serif-ver1003.zip \
&& unzip font-ptastrasans-ttf-ver1002.zip \
&& rm -rf *.zip \
&& apk add msttcorefonts-installer \
&& update-ms-fonts
FROM debian:bookworm AS doc-builder
LABEL org.opencontainers.image.source="https://github.com/afaikiac/latex-g7-32"
LABEL org.opencontainers.image.description="Container image for building LaTeX documents"
LABEL org.opencontainers.image.licenses="GPL-3.0"
COPY --from=font-builder /fonts /usr/share/fonts/truetype/astra/
COPY --from=font-builder /usr/share/fonts/truetype/msttcorefonts /usr/share/fonts/truetype/msttcorefonts
RUN chmod -R 644 /usr/share/fonts/truetype/astra/* \
&& chmod -R 644 /usr/share/fonts/truetype/msttcorefonts/* \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends --assume-yes \
texlive-latex-base \
texlive-xetex \
texlive-latex-extra \
texlive-plain-generic \
texlive-lang-cyrillic \
texlive-science \
latexmk \
python3-pygments \
cm-super \
fonts-liberation \
texlive-fonts-recommended \
fontconfig \
&& dpkg-query --showformat='${binary:Package}\n' --show '*-doc' \
| xargs apt-get -y remove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* \
/usr/share/doc/* /usr/share/man/* \
&& fc-cache -f -v
WORKDIR /doc