forked from nextcloud/ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) 路 867 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:xenial
RUN apt-get update && \
apt-get install -y wget build-essential lcov curl cmake gcovr libprocps4-dev libssl-dev \
git python-cheetah libuv1-dev ninja-build adb xutils-dev
# Install the Android NDK
RUN mkdir -p /tmp/android-ndk && \
cd /tmp/android-ndk && \
wget -q http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin -O android-ndk.bin && \
chmod a+x ./android-ndk.bin && sync && ./android-ndk.bin && \
mv ./android-ndk-r10e /opt/android-ndk && \
chmod -R a+rX /opt/android-ndk && \
rm -rf /tmp/android-ndk
ENV ANDROID_NDK_PATH /opt/android-ndk
# Ensure a new enough version of CMake is available.
RUN cd /opt \
&& wget https://cmake.org/files/v3.15/cmake-3.15.2-Linux-x86_64.tar.gz \
&& tar zxvf cmake-3.15.2-Linux-x86_64.tar.gz
ENV PATH "/opt/cmake-3.15.2-Linux-x86_64/bin:$PATH"