title: Alpine - Docker: returned a non-zero code: 139
body: <p>I run the same Docker build on two machines:</p>
  
  <ul>
  <li>Ubuntu 16.04</li>
  <li>Debian 9.7</li>
  </ul>
  
  <p>Everything works fine in Ubuntu but this is the problem I have in Debian during the Docker build:</p>
  
  <pre><code>The command '/bin/sh -c php7 /installer.php --install-dir=/usr/bin --filename=composer' returned a non-zero code: 139
  </code></pre>
  
  <p>This is my Dockerfile:</p>
  
  <pre><code>FROM nginx:1.14-alpine
  ...
  ...
  RUN curl https://getcomposer.org/installer -o /installer.php
  RUN php7 /installer.php --install-dir=/usr/bin --filename=composer
  ...
  ...
  </code></pre>
  
  <p>In Linux, the error code 139 indicates a segmentation fault. 
  I have a memory of 15437156 kB on Debian (Docker version 18.06.2-ce) and 16147116 kB on Ubuntu (Docker version 18.05.0-ce).</p>
  
  <p>Note: The problem happens during the build <code>docker build ..</code>.</p>
  
  <p>Do you know how to fix this on Debian? </p>