laravel-docker icon indicating copy to clipboard operation
laravel-docker copied to clipboard

Add GNU Autotools

Open mnme opened this issue 3 years ago • 0 comments

I'm using imagemin in my build pipeline which depends on gifsicle. There seems to be no gifsicle binary available for Alpine Linux, so npm tries to build it from source, which fails because the GNU Autotools (automake, autoconf) are missing in the docker image.

> [email protected] postinstall /var/www/oauth-server/node_modules/gifsicle
> node lib/install.js

spawn /var/www/oauth-server/node_modules/gifsicle/vendor/gifsicle ENOENT
gifsicle pre-build test failed
compiling from source
Error: Command failed: /bin/sh -c autoreconf -ivf
/bin/sh: autoreconf: not found

Adding them fixes this error. Do you think it is worth adding these packages generally?

mnme avatar Jan 17 '22 15:01 mnme