Latex premier documents

Utilisation de latex, mise en place d’un Docker avec tous les outils :

Dockerfile:
<pre class= »prettyprint linenums »><code>
#This is a comment FROM debian:jessie-slim
#FROM debian:jessie MAINTAINER Jerome Baudet <jerome@baudet.io>
RUN echo « deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main » >> /etc/apt/sources.list
RUN apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 93C4A3FD7BB9C367
RUN apt-get update && apt-get install –fix-missing -y sudo curl texlive-latex-base texlive-xetex latex-xcolor texlive-math-extra texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra fontconfig lmodern preview-latex-style texlive-latex-recommended tipa prosper preview-latex-style cabal-debian pandoc pandoc-data texlive-doc-fr sshpass openssh-client openssh-server vim vim-latexsuite
RUN apt-get autoremove
RUN apt-get clean
RUN mkdir /var/run/sshd
RUN mkdir /root/.ssh
COPY authorized_keys /root/.ssh/
RUN sed -i ‘s/PermitRootLogin prohibit-password/PermitRootLogin yes/’ /etc/ssh/sshd_config
#SSH login fix. Otherwise user is kicked off after login
RUN sed ‘s@sessions*requireds*pam_loginuid.so@session optional pam_loginuid.so@g’ -i /etc/pam.d/sshd
ENV NOTVISIBLE « in users profile »
RUN echo « export VISIBLE=now » >> /etc/profile
#will ease up the update process
#updating this env variable will trigger the automatic build of the Docker image
#ENV PANDOC_VERSION « 1.19.2.1 »
#install pandoc #
RUN cabal update && cabal install pandoc-${PANDOC_VERSION} #
EXPOSE 2200
VOLUME [« /data »] CMD [« /usr/sbin/sshd », « -D »]
#ENTRYPOINT /bin/bash
</pre></code>

Laisser un commentaire