meanjs / mean

MEAN.JS - Full-Stack JavaScript Using MongoDB, Express, AngularJS, and Node.js -
http://meanjs.org
MIT License
4.87k stars 1.98k forks source link

Dockerfile build fails due pngquant dependency #1960

Open rigelreyes opened 6 years ago

rigelreyes commented 6 years ago

Recently I tried to build MEANJS with docker-compose up and I got an issue related to pngquant:

npm ERR! Failed at the pngquant-bin@4.0.0 postinstall script 'node lib/install.js'.

This problem is related to the missing dependency called libpng and libpng-dev, so in order to solve the issue I added 2 lines in the Install Utilities block (apt-get install): libpng12-dev \ libpng12-0 \ After that the build was successful and the services were mounted correctly. Hope this can be useful.

lpetri-orion commented 6 years ago

This worked for me, thanks @rigelreyes