Skip to content

Instantly share code, notes, and snippets.

@K4zuki
Created December 15, 2021 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save K4zuki/e34084a6a883f705c29a1ed559dbea8b to your computer and use it in GitHub Desktop.
Save K4zuki/e34084a6a883f705c29a1ed559dbea8b to your computer and use it in GitHub Desktop.
docker example to install wavedrom-cli on Alpine Linux
# 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