lua: Add and replace luajit
[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.10
8
9 # Fix locale to avoid warnings:
10 ENV LANG C.UTF-8
11
12 # We expect this to be mounted with '-v $PWD:/root/termux-packages':
13 WORKDIR /root/termux-packages
14
15 # Needed for setup:
16 ADD ./setup-ubuntu.sh /tmp/setup-ubuntu.sh
17 ADD ./setup-android-sdk.sh /tmp/setup-android-sdk.sh
18
19 # Allow configure to be run as root:
20 ENV FORCE_UNSAFE_CONFIGURE 1
21
22 # Setup needed packages and the Android SDK and NDK:
23 RUN apt-get update && \
24 DEBIAN_FRONTEND=noninteractive apt-get install -yq sudo && \
25 /tmp/setup-ubuntu.sh && \
26 apt-get clean && \
27 /tmp/setup-android-sdk.sh && \
28 # Removed unused parts to make a smaller Docker image:
29 cd /root/lib/android-ndk/ && \
30 rm -Rf toolchains/mips* && \
31 rm -Rf sources/cxx-stl/gabi++ sources/cxx-stl/llvm-libc++* sources/cxx-stl/system/ sources/cxx-stl/stlport && \
32 cd platforms && ls | grep -v android-21 | xargs rm -Rf && \
33 cd /root/lib/android-sdk/tools && rm -Rf emulator* lib* proguard templates
34