Skip to content

Commit

Permalink
SYS-1315: Fix npm install problem on Mac M1 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
akohler authored Jun 16, 2023
1 parent dae2ec6 commit 1bbf044
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1bbf044

Please sign in to comment.