-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
68 lines (48 loc) · 1.78 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
# References:
#
# https://stackoverflow.com/questions/55312675/docker-alpine-texlive-error-tlmgr-not-found
# FROM alpine:3.9
# ENV PATH=/usr/local/texlive/bin/x86_64-linuxmusl:$PATH
# RUN apk add --update
# RUN apk add --no-cache bash perl wget
# RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
# RUN tar -xzf install-tl-unx.tar.gz && cd install-tl-20* && ./install-tl
# RUN apk add --no-cache \
# texlive \
# texlive-xetex \
# texmf-dist \
# texmf-dist-formatsextra \
# texmf-dist-latexextra \
# texmf-dist-pictures \
# texmf-dist-science
# RUN which tlmgr
# # RUN tlmgr install fontawesome
# RUN ["/bin/sh"]
# syntax=docker/dockerfile:1
# Reference:
# * http://johnbokma.com/blog/2021/06/18/running-pdflatex-using-alpine-pandoc-latex-image.html
# * https://stackoverflow.com/questions/55312675/docker-alpine-texlive-error-tlmgr-not-found
FROM pandoc/latex:3.1.1.0-alpine
RUN tlmgr update --self && tlmgr install sectsty lastpage helvetic
# https://github.com/latex3/babel/blob/v.3.92/locale/id/babel-indonesian.tex
RUN tlmgr install babel-english babel-indonesian
# https://www.ctan.org/pkg/nomencl
RUN tlmgr install nomencl
# https://www.ctan.org/pkg/tocbasic (tocbasic)
RUN tlmgr install koma-script
# https://www.ctan.org/pkg/pbox
RUN tlmgr install pbox
# https://www.ctan.org/pkg/enumitem
RUN tlmgr install enumitem
# https://www.ctan.org/pkg/bera (beramono)
RUN tlmgr install bera
# https://www.ctan.org/pkg/tocloft
RUN tlmgr install tocloft
# https://tex.stackexchange.com/questions/155309/mktextfm-ptmr8t-errors
# Fix this error:
# ! I can't find file `ptmr8t'.
RUN tlmgr install collection-fontsrecommended
# https://www.ctan.org/pkg/natbib
# For bibliography
RUN tlmgr install natbib
ENTRYPOINT ["pdflatex"]