-
Notifications
You must be signed in to change notification settings - Fork 193
/
Dockerfile.ubuntu
51 lines (44 loc) · 1.27 KB
/
Dockerfile.ubuntu
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
FROM ubuntu:22.04
RUN export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
apt-get install -y \
git \
graphviz \
latexmk \
make \
potrace \
texlive-latex-recommended \
texlive-metapost \
texlive-xetex \
texlive-latex-extra \
context \
pdf2svg \
python3-sphinx \
sphinx-intl \
python3-stemmer \
python3-sphinxcontrib.bibtex \
python3-sphinxcontrib.svg2pdfconverter \
ghostscript \
xindy
RUN set -e; \
apt-get install -y wget; \
for archive in source-code-pro/archive/2.030R-ro/1.050R-it.zip \
source-serif-pro/archive/2.000R.zip \
source-sans-pro/archive/2.020R-ro/1.075R-it.zip; do \
wget -O archive.zip https://github.com/adobe-fonts/"${archive}"; \
unzip -j archive.zip '*.otf' -d /usr/local/share/fonts; \
rm archive.zip; \
done; \
fc-cache -f -v
RUN git config --system --add safe.directory /repo
RUN useradd -u 1001 runner
# setup texlive to handle having no home directory
ENV TEXMFVAR /tmp/texmf-var
ENV TEXMFCACHE /tmp/texmf-cache
# Add Tini
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
USER runner
WORKDIR /repo