Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCKER] Pandoc: switch to pandoc/extra:3.1.1 #157

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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