title: docker alpine: autoreconf: failed to run aclocal: No such file or directory
body: <p>I have docker alpine image for my project and I need to install <code>gifsicle</code> node package, but while installing it I'm getting error</p>
  <pre><code>Directory: /var/www/abboom-landing/node_modules/gifsicle
  Output:
  ⚠ Response code 404 (Not Found)
    ⚠ gifsicle pre-build test failed
    ℹ compiling from source
    ✖ Error: Command failed: /bin/sh -c autoreconf -ivf
  autoreconf: Entering directory `.'
  autoreconf: configure.ac: not using Gettext
  autoreconf: running: aclocal  --output=aclocal.m4t
  Can't exec &quot;aclocal&quot;: No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
  autoreconf: failed to run aclocal: No such file or directory
  </code></pre>
  <p>I found that I need to add <code>autoconf</code> and <code>libtool</code> packages to my Dockerfile, I did it but still have the same error, and I can't find any valuable solution.</p>
  <p>Here is my docker file:</p>
  <pre><code>FROM php:7.3-fpm-alpine
  
  ENV BUILD_DEPS autoconf file gcc libc-dev make g++ pkgconf re2c git
  
  RUN apk add --update --no-cache --virtual .build-deps $BUILD_DEPS
  RUN apk add --no-cache --virtual .php-build-deps \
          libsodium \
          freetype-dev \
          libmcrypt-dev \
          postgresql-dev  \
          libxml2-dev  \
          libzip-dev \
          libcurl \
          libpng-dev \
          autoconf \
          libtool \
          nasm \
          zlib-dev cyrus-sasl-dev libmemcached-dev
  
  RUN NPROC=$(grep -c ^processor /proc/cpuinfo 2&gt;/dev/null || 1)
  ## Installable modules
  RUN docker-php-ext-install iconv bcmath pdo_mysql opcache pgsql pdo_pgsql soap pcntl exif zip gd calendar dom json
  ## just good to have installed
  RUN apk add --no-cache  ca-certificates wget
  
  RUN  cd ~ \
      &amp;&amp; curl -sS https://getcomposer.org/installer | php \
      &amp;&amp; mv composer.phar /usr/local/bin/composer
  
  
  ## Install dependencies like editor xdebug etc.
  RUN apk update &amp;&amp; apk add --no-cache vim g++ make zlib-dev \
          $BUILD_DEPS \
          &amp;&amp; pecl install xdebug &amp;&amp; docker-php-ext-enable xdebug \
          &amp;&amp; rm -rf /var/cache/apk/*
  
  RUN pecl install mongodb \
      &amp;&amp;  docker-php-ext-enable mongodb
  
  RUN pecl install redis \
      &amp;&amp;  docker-php-ext-enable redis
  
  RUN apk --update add openssh-client
  
  RUN apk add --update nodejs yarn
  
  ## configure xdebug
  RUN printf &quot;xdebug.cli_color=1\nxdebug.remote_connect_back=1\nxdebug.remote_autostart=1\nxdebug.remote_enable=1\nxdebug.ide_key=PHPSTORM&quot; &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  
  ADD php.pool.conf /usr/local/etc
  ADD php.ini /usr/local/etc/php/
  
  
  WORKDIR /var/www/
  
  #EXPOSE 22
  
  CMD [&quot;php-fpm&quot;, &quot;--fpm-config&quot;, &quot;/usr/local/etc/php-fpm.conf&quot;]
  </code></pre>