-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (15 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:latest as base
LABEL org.opencontainers.image.source https://github.com/OJFord/docker-texlive
ADD http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz .
RUN tar -xf install-tl-*
RUN apk add perl wget
RUN cd install-tl-* && yes i | ./install-tl
RUN mv /usr/local/texlive/$(find /usr/local/texlive -type d -maxdepth 1 -mindepth 1 -regex '.*/[0-9]*$' | cut -d/ -f5)/* /usr/local/texlive/
ADD https://httpbin.org/uuid force-cache-invalidation
RUN /usr/local/texlive/bin/x86_64-linuxmusl/tlmgr update --all
FROM alpine:latest
MAINTAINER Oliver Ford <[email protected]>
COPY --from=base /usr/local/texlive /usr/local/texlive
ENV INFOPATH "/usr/local/texlive/texmf-dist/doc/info:$INFOPATH"
ENV MANPATH "/usr/local/texlive/texmf-dist/doc/man:$MANPATH"
ENV PATH "/usr/local/texlive/bin/x86_64-linuxmusl:$PATH"