Skip to content
Myr

Dockerfile.android

This file

Path

src/Dockerfile.android

40 lines · 2.0 KiB

Last changed by

Update build scriptJunegunn Choibefore adoption1b9ca31

History of this file

Take it

1FROM ubuntu:14.042MAINTAINER Junegunn Choi <junegunn.c@gmail.com>34# apt-get5RUN apt-get update && apt-get -y upgrade && \6    apt-get install -y --force-yes git curl build-essential78# Install Go 1.49RUN cd / && curl \10    https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | \11    tar -xz && mv go go1.4 && \12    sed -i 's@#define PTHREAD_KEYS_MAX 128@@' /go1.4/src/runtime/cgo/gcc_android_arm.c1314ENV GOROOT /go1.415ENV PATH /go1.4/bin:$PATH1617RUN cd / && \18    curl -O http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin && \19    chmod 755 /android-ndk* && /android-ndk-r10e-linux-x86_64.bin && \20    mv android-ndk-r10e /android-ndk2122RUN cd /android-ndk && bash ./build/tools/make-standalone-toolchain.sh --platform=android-21 --install-dir=/ndk --arch=arm2324ENV NDK_CC /ndk/bin/arm-linux-androideabi-gcc2526RUN cd $GOROOT/src && \27    CC_FOR_TARGET=$NDK_CC GOOS=android GOARCH=arm GOARM=7 ./make.bash2829RUN cd / && curl \30    http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz | \31    tar -xz && cd /ncurses-5.9 && \32    ./configure CC=$NDK_CC CFLAGS="-fPIE -march=armv7-a -mfpu=neon -mhard-float -Wl,--no-warn-mismatch" LDFLAGS="-march=armv7-a -Wl,--no-warn-mismatch" --host=arm-linux --enable-overwrite --enable-const --without-cxx-binding  --without-shared --without-debug --enable-widec --enable-ext-colors --enable-ext-mouse --enable-pc-files --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR --without-manpages --without-ada --disable-shared --without-tests --prefix=/ndk/sysroot/usr --with-default-terminfo-dirs=/usr/share/terminfo --with-terminfo-dirs=/usr/share/terminfo ac_cv_header_locale_h=n ac_cv_func_getpwent=no ac_cv_func_getpwnam=no ac_cv_func_getpwuid=no && \33    sed -i 's@#define HAVE_LOCALE_H 1@/* #undef HAVE_LOCALE_H */@' include/ncurses_cfg.h && \34    make && \35    sed -i '0,/echo.*/{s/echo.*/exit 0/}' misc/run_tic.sh && \36    make install && \37    mv /ndk/sysroot/usr/lib/libncursesw.a /ndk/sysroot/usr/lib/libncurses.a3839# Default CMD40CMD cd /fzf/src && /bin/bash