lorisleiva / laravel-docker

🐳 Generic docker image for Laravel Applications
MIT License
934 stars 314 forks source link

Add GNU Autotools #109

Open mnme opened 2 years ago

mnme commented 2 years ago

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.

> gifsicle@6.1.0 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?