2 MAINTAINER Alex Cornejo <acornejo@gmail.com>
4 # to prevent dialog warnings
5 ENV DEBIAN_FRONTEND noninteractive
6 # to fix locale to avoid warnings
7 RUN locale-gen en_US.UTF-8
8 RUN dpkg-reconfigure locales
10 RUN apt-get update && apt-get install -y \
17 # Used for fetching sources
19 # Provides 'msgfmt' which the apt build uses
23 # Needed by luajit host part
26 libcurl4-openssl-dev \
27 # Provides 'gkd-pixbuf-query-loaders' which the librsvg build uses
28 libgdk-pixbuf2.0-dev \
29 # Provides 'glib-genmarshal' which the glib build uses
39 # php-cli is needed to compile php package
46 # Provides u'makedepend' which the openssl build uses
48 # Needed for android-sdk
53 curl -O http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz && \
54 curl -O http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && \
55 tar xzvf /tmp/android-sdk_r24.3.4-linux.tgz && \
56 chmod 755 /tmp/android-ndk* && /tmp/android-ndk-r10e-linux-x86_64.bin && \
58 mv /tmp/android-sdk-linux /root/lib/android-sdk && \
59 mv /tmp/android-ndk-r10e /root/lib/android-ndk && \
62 RUN mkdir -p /data/data/com.termux/files/usr && mkdir -p /root/termux-packages && \
63 # This link is needed for building git package
64 mkdir -p /system/bin && \
65 ln -s /bin/sh /system/bin/sh && \
66 # Install neovim dependencies
67 luarocks install lpeg && \
68 luarocks install lua-MessagePack && \
69 luarocks install luabitop
71 ADD *.py /root/termux-packages/
72 ADD *.sh /root/termux-packages/
73 ADD *.spec /root/termux-packages/
74 ADD packages /root/termux-packages/packages
75 ADD ndk_patches /root/termux-packages/ndk_patches