-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCKER] Pandoc: switch to pandoc/extra:3.1.1 (#157)
- Loading branch information
1 parent
0cbe848
commit 143069a
Showing
3 changed files
with
93 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
FROM pandoc/latex:2.19.2 | ||
FROM pandoc/extra:3.1.1 | ||
|
||
LABEL org.opencontainers.image.source = "https://github.com/marco-lancini/utils" | ||
|
||
# Install Latex packages | ||
RUN tlmgr install adjustbox awesomebox babel-german background bidi collectbox csquotes everypage filehook fontawesome5 footmisc footnotebackref framed fvextra koma-script letltxmacro ly1 mdframed mweights needspace pagecolor pdfpages sourcecodepro sourcesanspro titlesec titling ucharcat ulem unicode-math upquote xecjk xurl zref | ||
COPY docker/pandoc/packages.txt /packages.txt | ||
RUN sed -e 's/ *#.*$//' -e '/^ *$/d' /packages.txt | \ | ||
xargs tlmgr install \ | ||
&& rm -f /packages.txt | ||
|
||
# Create low-privileged user | ||
RUN addgroup --gid 11111 -S app | ||
RUN adduser -s /bin/false -u 11111 -G app -S app | ||
# Install extra requirements | ||
COPY docker/pandoc/requirements.txt /requirements.txt | ||
RUN pip3 install --no-cache-dir -r /requirements.txt \ | ||
&& rm -f /requirements.txt | ||
|
||
WORKDIR /src | ||
RUN chown -R app:app /src | ||
USER app | ||
WORKDIR /data | ||
|
||
# Command | ||
CMD [ "pandoc" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# | ||
# Latex packages required | ||
# | ||
# Taken from: | ||
# https://github.com/pandoc/dockerfiles/blob/master/common/extra/packages.txt | ||
# | ||
|
||
######################################################################### | ||
# Required by pandoc-latex-environment filter | ||
etoolbox | ||
environ | ||
pgf | ||
tcolorbox | ||
trimspaces | ||
|
||
######################################################################### | ||
# Required by eisvogel template | ||
# see https://github.com/Wandmalfarbe/pandoc-latex-template/blob/master/.github/workflows/build-examples.yml | ||
abstract | ||
adjustbox | ||
awesomebox | ||
babel-german | ||
background | ||
bidi | ||
catchfile | ||
collectbox | ||
csquotes | ||
everypage | ||
filehook | ||
fontawesome5 | ||
footmisc | ||
footnotebackref | ||
framed | ||
fvextra | ||
hardwrap | ||
incgraph | ||
koma-script | ||
letltxmacro | ||
lineno | ||
listingsutf8 | ||
ly1 | ||
mdframed | ||
mweights | ||
needspace | ||
pagecolor | ||
pdfpages | ||
sectsty | ||
sourcecodepro | ||
sourcesanspro | ||
titlesec | ||
titling | ||
transparent | ||
ucharcat | ||
ulem | ||
unicode-math | ||
upquote | ||
xecjk | ||
xurl | ||
zref | ||
|
||
######################################################################### | ||
# Completes Source family | ||
sourceserifpro | ||
|
||
######################################################################### | ||
# Required by Beamer/Metropolis | ||
beamertheme-metropolis | ||
pgfopts | ||
tcolorbox | ||
environ | ||
tikzfill | ||
|
||
# https://github.com/pandoc/dockerfiles/issues/135 | ||
enumitem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Python filters | ||
# | ||
# Taken from: | ||
# https://github.com/pandoc/dockerfiles/blob/master/common/extra/requirements.txt | ||
# | ||
|
||
pandoc-latex-environment==1.1 |