-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (51 loc) · 1.37 KB
/
Dockerfile
File metadata and controls
53 lines (51 loc) · 1.37 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
41
42
43
44
45
46
47
48
49
50
51
52
53
ARG VARIANT="jammy"
FROM ubuntu:${VARIANT} as base
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
git \
make \
curl \
texlive \
texlive-extra-utils \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-publishers \
texlive-bibtex-extra \
biber \
latexmk \
latexdiff \
lmodern \
locales \
pandoc \
inkscape \
vim \
ghostscript \
&& apt-get clean \
&& rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN echo "buf_size=10000000" > /etc/texmf/texmf.d/texmf.cnf
RUN update-texmf
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN git config --global --add safe.directory /workspace
WORKDIR /workspace
FROM base as fonts-extra
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
texlive-fonts-extra \
&& apt-get clean \
&& rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN update-texmf
FROM base as jp
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
texlive-lang-cjk \
texlive-lang-japanese \
&& apt-get clean \
&& rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN update-texmf