FROM debian:jessie MAINTAINER Steeve Morin "steeve.morin@gmail.com" RUN apt-get update && apt-get -y --force-yes install \ bash \ curl \ pkg-config \ build-essential \ file \ tar xz-utils bzip2 gzip sed ENV CROSS_TRIPLE arm-linux-androideabi ENV CROSS_ROOT /gcc-${CROSS_TRIPLE} ENV PATH ${PATH}:${CROSS_ROOT}/bin ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH} RUN mkdir -p /build && \ cd /build && \ curl -L http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2 | tar xvj && \ cd /build/android-ndk-r10 && \ /bin/bash ./build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=${CROSS_ROOT} && \ cd / && \ rm -rf /build RUN cd ${CROSS_ROOT}/bin && \ ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc