Created
November 5, 2016 21:52
-
-
Save auzias/4ceee5caa1fc2a8d3c5f40740567fe7f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM debian:latest | |
MAINTAINER Maël Auzias <[email protected]> | |
RUN apt-get update && apt-get install -y \ | |
texlive* \ | |
ca-certificates \ | |
python3 \ | |
curl \ | |
--no-install-recommends \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Adding Pygments for package minted | |
RUN curl -O https://bootstrap.pypa.io/get-pip.py \ | |
&& python3 get-pip.py \ | |
&& rm get-pip.py \ | |
&& pip install Pygments \ | |
# downgrade minted :: might not be necessary with `debian:latest` | |
&& curl -o /usr/share/texlive/texmf-dist/tex/latex/minted/minted.sty \ | |
https://raw.githubusercontent.com/gpoore/minted/0a8640dddff47ae31a7a0d6e3cf030c82c111907/source/minted.sty | |
# Create user and working dir | |
WORKDIR /build | |
RUN useradd --no-create-home --uid 1000 pdflatex-user | |
USER pdflatex-user | |
# assuming the image is named "pdflatex", use it (somehow) as follow: | |
# docker run --rm -it -v `pwd`:/build pdflatex pdflatex -shell-escape -output-directory ${BUILD_DIR} -draftmode ${FILE}.tex | |
# entrypoint `bash` is prefered as pdflatex package brings both `pdflatex`- and `bibtex`- commands | |
ENTRYPOINT [ "bash" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment