Skip to content

Commit 7fc3237

Browse files
committed
Update mega Dockerfile to install Chromium
Per #416 and follow on feedback in #417, adding these deps to the mega container image to install Chromium and its transient dependencies would facilitate using Puppeteer in GitHub Actions, per the documentation at the URL below, deduplicating deps from the dependencies installed in the base image from the docker/action/Dockerfile base image setup. https://pptr.dev/troubleshooting/ The i-d-template maintainer and others recommended mermaid-cli as a viable alternative to aasvg and other tools in #355. The former uses headless Chromium to operate.
1 parent c448265 commit 7fc3237

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docker/math/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ RUN set -e; \
2727
rm -rf "$tmp"; \
2828
apk del .locale_build
2929

30-
RUN apk add npm && npm install -g mathjax-node-cli
30+
RUN apk add --no-cache \
31+
chromium \
32+
nss \
33+
freetype \
34+
harfbuzz \
35+
ttf-freefont \
36+
yarn && \
37+
npm install -g mathjax-node-cli

0 commit comments

Comments
 (0)