Dockerfile 848 B

1234567891011121314151617181920212223
  1. FROM ubuntu:xenial
  2. RUN apt-get update && \
  3. apt-get install -y wget build-essential lcov curl cmake gcovr libssl-dev \
  4. git python-cheetah libuv1-dev ninja-build adb xutils-dev
  5. # Install the Android NDK
  6. RUN mkdir -p /tmp/android-ndk && \
  7. cd /tmp/android-ndk && \
  8. wget -q http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin -O android-ndk.bin && \
  9. chmod a+x ./android-ndk.bin && sync && ./android-ndk.bin && \
  10. mv ./android-ndk-r10e /opt/android-ndk && \
  11. chmod -R a+rX /opt/android-ndk && \
  12. rm -rf /tmp/android-ndk
  13. ENV ANDROID_NDK_PATH /opt/android-ndk
  14. # Ensure a new enough version of CMake is available.
  15. RUN cd /opt \
  16. && wget https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz \
  17. && tar zxvf cmake-3.7.2-Linux-x86_64.tar.gz
  18. ENV PATH "/opt/cmake-3.7.2-Linux-x86_64/bin:$PATH"