-
Notifications
You must be signed in to change notification settings - Fork 1
/
alpine.Dockerfile
28 lines (22 loc) · 966 Bytes
/
alpine.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
FROM alpine:3.20
LABEL maintainer="Yoan Tournade <[email protected]>"
# Install Texlive: latest release.
# Based on :
# - https://www.tug.org/texlive/quickinstall.html
# - https://github.com/dc-uba/docker-alpine-texlive
# install-tl dependencies.
# GPG is for tlmgr installation source verifications.
RUN apk add --no-cache perl wget tar xz gnupg
# TODO Make textlive.profile a template, so we can configure the installation path.
COPY ./texlive.profile /tmp/
RUN cd /tmp && wget -qO- https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | tar xz \
&& /tmp/install-tl*/install-tl -profile /tmp/texlive.profile \
&& rm -rf /tmp/install-tl-*
# Cleanup
# remove install-tl dependencies.
# RUN apk del perl wget tar xz
# But requires to be done all in one RUN/layer?
# Or use multistage?
# https://docs.docker.com/develop/develop-images/multistage-build/
# Add Texlive binaries to path.
ENV PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}"