-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
53 lines (40 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Original source: https://github.com/brokenpylons/docker-lualatex
FROM debian:stretch-slim as installer
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get --no-install-recommends install -y \
perl-modules \
liburi-encode-perl \
gnupg \
wget \
ca-certificates \
xzdec && \
rm -rf /var/lib/apt/lists/*
WORKDIR /install
COPY texlive.profile .
RUN wget -qO- http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | tar -xzf- --strip-components=1 && \
./install-tl -profile texlive.profile
FROM debian:stretch-slim
ARG DEBIAN_FRONTEND=noninteractive
COPY --from=installer /usr/local/texlive /usr/local/texlive
RUN apt-get update && \
apt-get --no-install-recommends install -y \
perl-modules \
liburi-encode-perl \
gnupg \
wget \
latexmk && \
rm -rf /var/lib/apt/lists/*
ENV HOME=/tmp PATH="/usr/local/texlive/bin/x86_64-linux:$PATH"
RUN tlmgr init-usertree &&\
tlmgr install \
collection-latex \
collection-luatex \
collection-latexextra \
collection-fontsextra \ && \
rm -rf /usr/local/texlive/texmf-var/*
COPY entrypoint.sh /app/
RUN chmod 755 /app/entrypoint.sh
WORKDIR /data
VOLUME ["/data"]
ENTRYPOINT ["/app/entrypoint.sh"]