-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
35 lines (29 loc) · 1.11 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
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
# System deps + Python
RUN apt-get update && apt-get install -y \
curl wget make python3 python3-pip fontconfig \
&& rm -rf /var/lib/apt/lists/*
# Times New Roman and other MS core fonts
RUN apt-get update \
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" \
| debconf-set-selections \
&& apt-get install -y ttf-mscorefonts-installer \
&& fc-cache -f \
&& rm -rf /var/lib/apt/lists/*
# XeLaTeX + required packages
RUN apt-get update && apt-get install -y \
texlive-xetex \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
&& rm -rf /var/lib/apt/lists/*
# Quarto — pin version; override at build time with --build-arg QUARTO_VERSION=x.y.z
ARG QUARTO_VERSION=1.6.39
RUN ARCH=$(dpkg --print-architecture) \
&& curl -fsSL \
"https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-${ARCH}.deb" \
-o /tmp/quarto.deb \
&& dpkg -i /tmp/quarto.deb \
&& rm /tmp/quarto.deb
WORKDIR /workspace