forked from realm/realm-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandroid.Dockerfile
51 lines (45 loc) · 1.75 KB
/
android.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:16.04
# Locales
RUN apt-get clean && apt-get update -qq && apt-get install -y locales && locale-gen en_US.UTF-8
ENV LANG "en_US.UTF-8"
ENV LANGUAGE "en_US.UTF-8"
ENV LC_ALL "en_US.UTF-8"
# The 32 bit binaries because aapt requires it
# `file` is need by the script that creates NDK toolchains
# Keep the packages in alphabetical order to make it easy to avoid duplication
RUN DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 \
&& apt-get update -qq \
&& apt-get install -y adb \
bsdmainutils \
build-essential \
curl \
file \
git \
libc6:i386 \
libgcc1:i386 \
libncurses5:i386 \
libstdc++6:i386 \
libz1:i386 \
ninja-build \
ruby \
ruby-dev \
s3cmd \
unzip \
xutils-dev \
tar \
wget \
zip \
&& apt-get clean
# Install CMake
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"
# Install the NDK
RUN cd /opt \
&& wget https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip \
&& unzip android-ndk-r21-linux-x86_64.zip \
&& rm -f android-ndk-r21-linux-x86_64.zip
ENV ANDROID_NDK_ROOT "/opt/android-ndk-r21"
ENV ANDROID_NDK_HOME "/opt/android-ndk-r21"
ENV ANDROID_NDK "/opt/android-ndk-r21"