-
Notifications
You must be signed in to change notification settings - Fork 183
/
Dockerfile
37 lines (35 loc) · 1.07 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
ARG REGISTRY=ghcr.io
ARG VERSION=latest
FROM ${REGISTRY}/martinthomson/i-d-template-action:${VERSION}
RUN set -e; \
apk add --no-cache --virtual .locale_build cmake musl-dev gcc gettext-dev bmake autoconf automake libtool; \
tmp=$(mktemp -d /tmp/asciitex-XXXXX); \
git clone --depth=1 https://github.com/larseggert/asciiTeX "$tmp"; \
cd "$tmp"; \
cmake -DCMAKE_BUILD_TYPE=Release -DDISABLE_TESTING=On -DCMAKE_INSTALL_PREFIX:PATH=/usr .; \
make install; \
cd /; \
rm -rf "$tmp"; \
tmp=$(mktemp -d /tmp/utftex-XXXXX); \
git clone --depth=1 https://github.com/bartp5/libtexprintf "$tmp"; \
cd "$tmp"; \
./autogen.sh; \
./configure; \
make install; \
cd /; \
rm -rf "$tmp"; \
tmp=$(mktemp -d /tmp/kgt-XXXXX); \
git clone --recursive https://github.com/katef/kgt.git "$tmp"; \
cd "$tmp"; \
bmake -r install; \
cd /; \
rm -rf "$tmp"; \
apk del .locale_build
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ttf-freefont \
yarn && \
npm install -g mathjax-node-cli