mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
* Update texcmp I found that the existing docker rules for texcmp did not make a working installation of LaTeX; in particular, it was missing a lot of the recently added packages. I updated to Ubuntu 17.10 and tweaked the package listings until things compiled again. Now I can run texcmp again. * texlive-font-utils not necessary
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
FROM ubuntu:17.10
|
|
|
|
MAINTAINER Martin von Gagern <gagern@ma.tum.de>
|
|
|
|
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 /usr/bin/dumb-init
|
|
|
|
# Disable regular updates, keep security updates, avoid intermediate layers
|
|
RUN sed -i 's/^\(deb.*updates\)/#\1/' /etc/apt/sources.list \
|
|
&& apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install -qy --no-install-recommends \
|
|
ca-certificates \
|
|
ghostscript \
|
|
imagemagick \
|
|
nodejs \
|
|
npm \
|
|
texlive-generic-recommended \
|
|
texlive-fonts-recommended \
|
|
texlive-latex-base \
|
|
texlive-latex-extra \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& chmod +x /usr/bin/dumb-init
|
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
|
|
RUN useradd --create-home --home-dir /KaTeX katex \
|
|
&& mkdir -p /KaTeX/dockers/texcmp /KaTeX/test/screenshotter
|
|
|
|
ADD package.json /KaTeX/dockers/texcmp/package.json
|
|
|
|
RUN ( cd /KaTeX/dockers/texcmp; npm install; ) \
|
|
&& ( cd /KaTeX/test/screenshotter; npm install js-yaml; ) \
|
|
&& chown -R katex:katex /KaTeX
|
|
|
|
USER katex
|