title: Cannot install sharp with Docker on M1 Mac
body: <p>Installing <code>sharp</code> on M1 Mac with <code>yarn install</code> is OK, but with Docker results in the following error:</p>
  <pre><code>error /usr/src/app/node_modules/sharp: Command failed.
  Exit code: 1
  Command: (node install/libvips &amp;&amp; node install/dll-copy &amp;&amp; prebuild-install) || (node install/can-compile &amp;&amp; node-gyp rebuild &amp;&amp; node install/dll-copy)
  Arguments: 
  Directory: /usr/src/app/node_modules/sharp
  Output:
  sharp: Installation error: Use with glibc 2.24 requires manual installation of libvips &gt;= 8.11.3
  sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
  </code></pre>
  <p>I ensured that sharp version is <code>0.29.0</code>, as well as installed lipvips globally on the Mac with <code>brew install vips</code> however Docker still cannot build the app.</p>
  <p>I followed the issue on GitHub <a href="https://github.com/lovell/sharp/issues/2460" rel="nofollow noreferrer">https://github.com/lovell/sharp/issues/2460</a> but it didn't really help.</p>
  <p>How could I force Docker to use that locally build lipvips? Or do you have any other suggestions? Thanks in advance</p>