2016-05-25 00:38:29 +02:00
|
|
|
FROM ubuntu:16.04
|
2015-10-10 18:05:23 +02:00
|
|
|
|
2016-05-25 00:38:29 +02:00
|
|
|
# Fix locale to avoid warnings:
|
2015-10-10 18:05:23 +02:00
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
RUN dpkg-reconfigure locales
|
|
|
|
|
2016-05-25 00:38:29 +02:00
|
|
|
# Add this folder to the container and set as working directory:
|
|
|
|
ADD . /root/termux-packages
|
|
|
|
WORKDIR /root/termux-packages
|
2015-10-10 18:05:23 +02:00
|
|
|
|
2016-05-25 00:38:29 +02:00
|
|
|
# Allow configure to be run as root:
|
|
|
|
ENV FORCE_UNSAFE_CONFIGURE 1
|
2015-10-10 18:05:23 +02:00
|
|
|
|
2016-05-25 00:38:29 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y sudo && \
|
|
|
|
USER=root /root/termux-packages/scripts/ubuntu-setup.sh && \
|
|
|
|
# Setup Android SDK and NDK:
|
|
|
|
mkdir -p /root/lib && \
|
|
|
|
cd /root/lib && \
|
|
|
|
curl -o sdk.tgz http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz && \
|
|
|
|
tar xzvf sdk.tgz && \
|
|
|
|
mv android-sdk-linux android-sdk && \
|
2016-03-10 12:31:43 +01:00
|
|
|
curl -o ndk.zip http://dl.google.com/android/repository/android-ndk-r11-linux-x86_64.zip && \
|
|
|
|
unzip ndk.zip && \
|
2016-05-25 00:38:29 +02:00
|
|
|
mv android-ndk-r11 android-ndk && \
|
|
|
|
/root/termux-packages/scripts/install-sdk.sh
|