FROM ubuntu:precise ENV DEBIAN_FRONTEND noninteractive RUN apt-get update &&\ apt-get install -y python-software-properties &&\ add-apt-repository ppa:ubuntu-toolchain-r/test &&\ apt-get update &&\ apt-get install -y build-essential gcc-5 curl cmake &&\ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 100 ENV CMAKE_C_COMPILER gcc RUN gcc --version RUN curl -Ls "https://github.com/andrewrk/libsoundio/archive/1.1.0.tar.gz" | tar -C /tmp -xvzf - &&\ cd /tmp/libsoundio-1.1.0 &&\ mkdir build &&\ cd build &&\ cmake .. &&\ make &&\ make install