-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
73 lines (65 loc) · 1.71 KB
/
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
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Enough fresh TeXLive and enough old Emacs for org-tangle in Jammy
FROM ubuntu:jammy
LABEL name="Pāli-English Recitations build image"
LABEL version="0.4"
# Increase just to trigger pipeline, reset on version update
LABEL release="1"
# hadolint ignore=DL3008
RUN \
apt-get update && \
apt-get install --no-install-recommends --yes \
ca-certificates \
git \
locales \
make \
zip \
&& \
apt-get clean && \
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
locale-gen && \
rm -rf /var/lib/apt/lists/*
ENV LC_ALL="en_US.UTF-8"
ENV LANG="en_US.UTF-8"
ARG DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008
RUN \
apt-get update && \
apt-get install --no-install-recommends --yes \
calibre \
emacs-nox \
epubcheck \
rename \
python3-unidecode \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# hadolint ignore=DL3008
RUN \
apt-get update && \
apt-get install --no-install-recommends --yes \
latexmk \
texlive \
texlive-extra-utils \
texlive-fonts-extra \
texlive-latex-extra \
tipa \
&& \
luaotfload-tool --update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ARG doomemacs_repo="https://github.com/doomemacs/doomemacs"
ARG doomemacs_ref="d5ccac5d71c819035fa251f01d023b3f94b4fba4"
ENV PATH="$PATH:/root/.emacs.d/bin/"
WORKDIR /root/.emacs.d/
# hadolint ignore=DL3008
RUN \
git init && \
git remote add origin "$doomemacs_repo" && \
git fetch --depth 1 origin "$doomemacs_ref" && \
git checkout FETCH_HEAD && \
org-tangle
# Workaround for broken /usr/bin/epubcheck
RUN \
printf '#! /bin/bash\n\njarwrapper /usr/bin/epubcheck "$@"\n' > /usr/local/bin/epubcheck && \
chmod a+x /usr/local/bin/epubcheck
WORKDIR /root/