Created
December 15, 2021 12:28
-
-
Save K4zuki/e34084a6a883f705c29a1ed559dbea8b to your computer and use it in GitHub Desktop.
docker example to install wavedrom-cli on Alpine Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Best hint exists here: https://github.com/Automattic/node-canvas/issues/1486#issuecomment-547841042 | |
# This would not occur on debian/ubuntu based environment/images | |
FROM node:12.22-alpine3.12 | |
RUN apk add --update --no-cache \ | |
make \ | |
g++ \ | |
jpeg-dev \ | |
cairo-dev \ | |
giflib-dev \ | |
pango-dev \ | |
python3 | |
RUN npm config set unsafe-perm true && \ | |
npm i canvas --build-from-source && \ | |
npm i wavedrom-cli -g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment