title: Installing numpy on Docker Alpine
body: <p>I'm trying to install numpy in a docker container based on Alpine 3.1. I'm using the following Dockerfile:</p>
  
  <pre><code>FROM alpine:3.1
  RUN apk add --update make cmake gcc g++ gfortran
  RUN apk add --update python py-pip python-dev
  RUN pip install cython
  RUN pip install numpy
  </code></pre>
  
  <p>This runs fine until <code>pip install numpy</code> when I get the following error:</p>
  
  <pre><code>error: Command "gcc -fno-strict-aliasing -Os -fomit-frame-pointer -DNDEBUG -Os -fomit-frame-pointer -fPIC -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -c build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o" failed with exit status 1
  </code></pre>
  
  <p><code>easy_install-2.7 numpy</code> gives the same error.</p>
  
  <p>Are there any config/installation steps I'm missing?</p>