title: How to compile Sharp js for AWS Lambda with Docker
body: <p>I believe I need to build some binaries of a javascript image library (sharp js) and I have a docker command from the sharp js docs but it doesn't seem to be working properly</p>
  
  <pre><code>docker run -v "$PWD":/var/task lambci/lambda:build-nodejs12.x npm install sharp
  </code></pre>
  
  <p><a href="https://sharp.pixelplumbing.com/install#aws-lambda" rel="nofollow noreferrer">Source</a></p>
  
  <p>I'm running this on win10. I just know docker basics btw. I get good output from npm but I don't see the libs anywhere.</p>
  
  <pre><code>$ docker run -v "$PWD":/var/task lambci/lambda:build-nodejs12.x npm install sharp
  
  &gt; sharp@0.25.2 install /var/task/node_modules/sharp
  &gt; (node install/libvips &amp;&amp; node install/dll-copy &amp;&amp; prebuild-install --runtime=napi) || (node-gyp rebuild &amp;&amp; node install/dll-copy)
  
  info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.9.1/libvips-8.9.1-linux-x64.tar.gz
  npm WARN saveError ENOENT: no such file or directory, open '/var/task/package.json'
  npm notice created a lockfile as package-lock.json. You should commit this file.
  npm WARN enoent ENOENT: no such file or directory, open '/var/task/package.json'
  npm WARN task No description
  npm WARN task No repository field.
  npm WARN task No README data
  npm WARN task No license field.
  
  + sharp@0.25.2
  added 76 packages from 154 contributors and audited 163 packages in 10.221s
  
  2 packages are looking for funding
    run `npm fund` for details
  
  found 0 vulnerabilities
  </code></pre>
  
  <p>This command keeps creating a directory called 'imageProcessing;C' that is empty. Alternatively is there a way I could just copy the libs found in the git repo into my node_modules folder somehow?</p>
  
  <p>I'm trying to deploy the libs to Lambda using the serverless framework. Thanks!</p>