From 1bbf044f82f583ce14e356193bc89b43eb74637b Mon Sep 17 00:00:00 2001 From: Andy Kohler Date: Fri, 16 Jun 2023 08:41:18 -0800 Subject: [PATCH] SYS-1315: Fix npm install problem on Mac M1 (#26) --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 954ea38..12f1dc7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,13 @@ # per https://github.com/ExLibrisGroup/primo-explore-devenv FROM node:16-bullseye +# Add dependencies needed to fix problem with "npm install" of primo-explore-devenv (below) on Mac M1 ARM64, +# which does not have pre-built node-canvas packages. +# https://github.com/Automattic/node-canvas/wiki/Installation:-Ubuntu-and-other-Debian-based-systems +# Note that libgif-dev, librsvg2-dev and libjpeg-dev are optional, and only required if you want gif, svg and jpeg support, respectively. +# apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev +RUN apt-get update && apt-get install -y build-essential libcairo2-dev libpango1.0-dev + # Install primo-explore-devenv # This, and the npm install, will show lots of deprecation warnings due to the old # Ex Libris environment being used here.