latex-wochenende/Dockerfile

22 lines
636 B
Docker

FROM alpine:3.9 as latesch
RUN apk add --update --no-cache texlive poppler cairo bash texmf-dist-full ghostscript
RUN apk add --update --no-cache --virtual .build-deps poppler-dev cairo-dev wget build-base pkgconf
ADD . /latex
WORKDIR /latex
RUN cd /tmp && \
wget https://github.com/dawbarton/pdf2svg/archive/v0.2.3.tar.gz && \
tar -xzf v0.2.3.tar.gz && \
cd pdf2svg-0.2.3/ && \
./configure && make && make install && \
cd /latex && \
rm -rf /tmp/pdf2svg-0.2.3/ && \
bash tex2svg.sh
FROM alpine:3.9
EXPOSE 8000
WORKDIR /latex
COPY --from=latesch /latex .
RUN apk add --update --no-cache npm && npm install
CMD ["npm", "start"]