Skip to content
Snippets Groups Projects
Commit 4a28c56f authored by benoit-cty's avatar benoit-cty
Browse files

Add pgf-pie to Latex in docker

parent a9a658f7
No related branches found
No related tags found
1 merge request!3Mise à jour de DataCirco pour la 16ème législature
......@@ -4,15 +4,9 @@ ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get -y install zip gnupg2 wget nano git curl csvkit python3.8-venv python3-wheel python3-pip libcairo2-dev pkg-config python3-dev p7zip-full jq gdal-bin parallel postgresql-client texlive-xetex optipng imagemagick-6.q16hdri texlive-lang-french recode
# Configure Latex
# Add pgf-pie to Latex
RUN tlmgr init-usertree
ENV PKG_HOME=~/texmf/tex/generic
ENV CTAN_MIRROR=https://mirrors.ctan.org/graphics/pgf/contrib
ENV ZIP_FILE=pgf-pie.zip
RUN mkdir -p "${PKG_HOME}" && cd "${PKG_HOME}"
RUN wget -q ${CTAN_MIRROR}/${ZIP_FILE}
RUN unzip ${ZIP_FILE} -x pgf-pie/demo/* && rm ${ZIP_FILE}
RUN mkdir -p /root/texmf/tex/generic && RUN cd /root/texmf/tex/generic && wget -q https://mirrors.ctan.org/graphics/pgf/contrib/pgf-pie.zip && unzip pgf-pie.zip -x pgf-pie/demo/* && rm pgf-pie.zip
# Configure convert
RUN sed -i '/PDF/d' /etc/ImageMagick-6/policy.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment