forked from openjournals/inara
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
66 lines (57 loc) · 1.43 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
FROM pandoc/latex:3.1.1-alpine
RUN apk add --no-cache ttf-hack; \
addgroup -g 100 users; \
adduser -u 1000 -G users -D ubuntu
# Install additional LaTeX packages
RUN tlmgr update --self && tlmgr install \
algorithmicx \
algorithms \
booktabs \
caption \
collection-context \
draftwatermark \
environ \
etoolbox \
fancyvrb \
float \
fontspec \
fontsetup \
latexmk \
lineno \
listings \
logreq \
marginnote \
mathspec \
newcomputermodern \
orcidlink \
pgf \
preprint \
seqsplit \
tcolorbox \
titlesec \
trimspaces \
xcolor \
xkeyval \
xstring \
fontawesome5 \
awesomebox
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/clean-metadata.lua $openjournals_path
COPY ./scripts/entrypoint.sh /usr/local/bin/inara
ENV JOURNAL=neurolibre
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"]