forked from openjournals/whedon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpaperdraft.Dockerfile
52 lines (47 loc) · 1.19 KB
/
paperdraft.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
FROM pandoc/latex:2.11.2
# Update tlmgr
RUN tlmgr repository add ftp://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final; \
tlmgr repository list; \
tlmgr repository remove http://mirror.ctan.org/systems/texlive/tlnet; \
tlmgr option repository ftp://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2021/tlnet-final; \
tlmgr update --self
# Install additional LaTeX packages
RUN tlmgr install \
algorithmicx \
algorithms \
biblatex \
booktabs \
caption \
collection-xetex \
draftwatermark \
environ \
etoolbox \
everypage \
fancyvrb \
float \
fontspec \
latexmk \
lineno \
listings \
logreq \
marginnote \
mathspec \
pgf \
preprint \
seqsplit \
tcolorbox \
titlesec \
trimspaces \
xcolor \
xkeyval \
xstring
# Copy templates, images, and other resources
ARG openjournals_path=/usr/local/share/openjournals
COPY ./resources $openjournals_path
COPY ./resources/docker-entrypoint.sh /usr/local/bin/paperdraft
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/paperdraft"]
CMD ["paper.md"]