Skip to content

Commit

Permalink
[DOCKER] Pandoc: switch to pandoc/extra:3.1.1 (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-lancini authored Sep 12, 2023
1 parent 0cbe848 commit 143069a
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docker/pandoc/Dockerfile
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" ]
75 changes: 75 additions & 0 deletions docker/pandoc/packages.txt
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

8 changes: 8 additions & 0 deletions docker/pandoc/requirements.txt
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

0 comments on commit 143069a

Please sign in to comment.