Remove stray char in comment
[termux-packages] / scripts / Dockerfile
1 # Build with:
2 # docker build -t termux/package-builder .
3 # Push to docker hub with:
4 # docker push termux/package-builder
5 # This is done after changing this file or any of the
6 # scripts/setup-{ubuntu,android-sdk}.sh setup scripts.
7 FROM ubuntu:16.04
8
9 # Fix locale to avoid warnings:
10 RUN locale-gen en_US.UTF-8
11 RUN dpkg-reconfigure locales
12
13 # We expect this to be mounted with '-v $PWD:/root/termux-packages':
14 WORKDIR /root/termux-packages
15
16 # Needed for setup:
17 ADD ./setup-ubuntu.sh /tmp/setup-ubuntu.sh
18 ADD ./setup-android-sdk.sh /tmp/setup-android-sdk.sh
19
20 # Allow configure to be run as root:
21 ENV FORCE_UNSAFE_CONFIGURE 1
22
23 # Setup needed packages and the Android SDK and NDK:
24 RUN apt-get update && \
25 DEBIAN_FRONTEND=noninteractive apt-get install -yq sudo && \
26 /tmp/setup-ubuntu.sh && \
27 apt-get clean && \
28 /tmp/setup-android-sdk.sh && \
29 # Removed unused parts to make a smaller Docker image:
30 cd /root/lib/android-ndk/ && \
31 rm -Rf toolchains/mips* && \
32 rm -Rf sources/cxx-stl/gabi++ sources/cxx-stl/llvm-libc++* sources/cxx-stl/system/ sources/cxx-stl/stlport && \
33 cd platforms && ls | grep -v android-21 | xargs rm -Rf && \
34 cd /root/lib/android-sdk/tools && rm -Rf emulator* lib* proguard templates
35