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
44 # Provides u'makedepend' which the openssl build uses
46 # Needed for android-sdk
51 curl -O http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz && \
52 curl -O http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && \
53 tar xzvf /tmp/android-sdk_r24.3.4-linux.tgz && \
54 chmod 755 /tmp/android-ndk* && /tmp/android-ndk-r10e-linux-x86_64.bin && \
56 mv /tmp/android-sdk-linux /root/lib/android-sdk && \
57 mv /tmp/android-ndk-r10e /root/lib/android-ndk && \
60 RUN mkdir -p /data/data/com.termux/files/usr && mkdir -p /root/termux-packages && \
61 # This link is needed for building git package
62 mkdir -p /system/bin && \
63 ln -s /bin/sh /system/bin/sh && \
64 # Install neovim dependencies
65 luarocks install lpeg && \
66 luarocks install lua-MessagePack && \
67 luarocks install luabitop
69 ADD *.py /root/termux-packages/
70 ADD *.sh /root/termux-packages/
71 ADD *.spec /root/termux-packages/
72 ADD packages /root/termux-packages/packages
73 ADD ndk_patches /root/termux-packages/ndk_patches