-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
51 lines (42 loc) · 1.16 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 pandoc/latex:3.2.0-alpine
RUN apk add --no-cache ttf-hack
# Install additional LaTeX packages
RUN tlmgr update --self && tlmgr install \
algorithmicx \
algorithms \
collection-context \
draftwatermark \
environ \
fontsetup \
hyperxmp \
latexmk \
lineno \
marginnote \
newcomputermodern \
orcidlink \
preprint \
seqsplit \
tcolorbox \
titlesec \
trimspaces \
xkeyval \
xstring
ENV OSFONTDIR=/usr/share/fonts
COPY ./fonts/libre-franklin $OSFONTDIR/libre-franklin
RUN TERM=dumb luaotfload-tool --update \
&& chmod -R o+w /opt/texlive/texdir/texmf-var \
&& apk add --no-cache ttf-opensans \
&& fc-cache -sfv $OSFONTDIR/libre-franklin \
&& mtxrun --generate \
&& mtxrun --script font --reload
# Copy templates, images, and other resources
ARG openjournals_path=/usr/local/share/openjournals
COPY ./resources $openjournals_path
COPY ./data $openjournals_path/data
COPY ./scripts/entrypoint.sh /usr/local/bin/inara
ENV JOURNAL=joss
ENV OPENJOURNALS_PATH=$openjournals_path
# Input is read from `paper.md` by default, but can be overridden. Output is
# written to `paper.pdf`
ENTRYPOINT ["/usr/local/bin/inara"]
CMD ["paper.md"]