2017-08-03 2 views
0

J'essaye de faire une image de docker avec TexLive 2017 plein et latexml pour compiler le latex au pdf et convertir également le latex en HTML. Je crois que ce serait un outil utile pour la communauté latex. Voici mon dockerfile:Image de docker de construction avec TexLive 2017 et latexml

FROM debian:testing 
MAINTAINER Dr Suman Khanal <[email protected]> 
LABEL updated_at '2017-07-26' 
RUN apt-get update \ 
    && apt-get install -y gnupg git wget curl libgetopt-long-descriptive-perl libdigest-perl-md5-perl python python-pygments 
WORKDIR /usr/local/src 
RUN curl -sL http://mirror.utexas.edu/ctan/systems/texlive/tlnet/install-tl-unx.tar.gz | tar zxf - && mv install-tl-20* install-tl 

WORKDIR install-tl 
RUN echo "selected_scheme scheme-full" > profile \ 
    && ./install-tl -repository http://mirror.utexas.edu/ctan/systems/texlive/tlnet -profile profile 
WORKDIR/
ENV PATH /usr/local/texlive/2017/bin/x86_64-linux:$PATH 
RUN apt-get install -y libarchive-zip-perl \ 
    libfile-which-perl libimage-size-perl \ 
    libio-string-perl libjson-xs-perl libtext-unidecode-perl \ 
    libparse-recdescent-perl liburi-perl libuuid-tiny-perl libwww-perl \ 
    libxml2 libxml-libxml-perl libxslt1.1 libxml-libxslt-perl \ 
    imagemagick libimage-magick-perl 
RUN git clone https://github.com/brucemiller/LaTeXML.git && cd LaTeXML && perl Makefile.PL && make && make install 
CMD ["tlmgr", "--version"] 

Mais son lancer cette erreur Build failed: The command '/bin/sh -c git clone https://github.com/brucemiller/LaTeXML.git && cd LaTeXML && perl Makefile.PL && make && make install' returned a non-zero code: 127 et non la construction. Toute aide où j'ai fait une erreur?

Un grand merci,

Suman

+0

Le résultat est publié à https://github.com/sumandoc/TeXLive -2017 – koppor

Répondre

1

Vous êtes absent make exécutable (apt-get install make) afin de construire processus se bloque après perl Makefile.PL

+0

OK laissez-moi le reconstruire. Ils disent que la commande 'cd' ne fonctionne pas dans dockerfile. Est-ce vrai? Cela peut-il être un problème dans mon dockerfile? –

+0

De mon expérience, tout ce qui fonctionne en shell, fonctionne aussi pour dockerfile. –

+0

Merci, ça marche. –