-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (34 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
40 lines (34 loc) · 1.23 KB
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
FROM debian:trixie
LABEL org.opencontainers.image.source=https://github.com/sambyeol/latex-devcontainer
USER root
ENV LANGUAGE=C.UTF-8
ENV LC_ALL=C.UTF-8
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
git \
ssh-client \
sudo \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
RUN yes | cpan install \
File::HomeDir \
Log::Dispatch::File \
YAML::Tiny
ARG CTAN_MIRROR=https://mirror.ctan.org/systems/texlive/tlnet
ARG TARGETARCH TARGETOS
ARG PLATFORM=${TARGETARCH/amd/x86_}
ARG PLATFORM=${PLATFORM/arm/aarch}
ARG PLATFORM=${PLATFORM}-${TARGETOS}
RUN cd /tmp \
&& curl -kL https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz | tar -xzf - \
&& cd ./install-tl-* \
&& TEXLIVE_INSTALL_ENV_NOCHECK=1 perl ./install-tl --no-interaction --location ${CTAN_MIRROR} -texdir /opt/texlive \
&& ls -l /opt/texlive/bin/${PLATFORM} \
&& rm -r /tmp/*
ENV MANPATH="/opt/texlive/texmf-dist/doc/man"
ENV INFOPATH="/opt/texlive/texmf-dist/doc/info"
ENV PATH="/opt/texlive/bin/${PLATFORM}:${PATH}"
CMD [ "sleep", "infinity" ]