2016-11-10 18:12:59 +00:00
|
|
|
FROM ubuntu:xenial
|
2016-04-22 00:45:17 +00:00
|
|
|
|
2016-11-17 15:55:02 +00:00
|
|
|
# Install the JDK
|
|
|
|
# We are going to need some 32 bit binaries because aapt requires it
|
|
|
|
# file is need by the script that creates NDK toolchains
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN dpkg --add-architecture i386 && \
|
|
|
|
apt-get update -qq && \
|
|
|
|
apt-get install -y file git curl wget zip unzip bsdmainutils strace lsof \
|
|
|
|
build-essential libc6:i386 software-properties-common \
|
|
|
|
libstdc++6:i386 libgcc1:i386 libncurses5:i386 libz1:i386 \
|
|
|
|
s3cmd libconfig++9v5 python build-essential && \
|
2016-11-10 18:12:59 +00:00
|
|
|
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
|
2016-11-17 15:55:02 +00:00
|
|
|
apt-get install -y nodejs && \
|
|
|
|
echo oracle-java6-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
|
|
|
|
add-apt-repository -y ppa:webupd8team/java && \
|
|
|
|
apt-get update -qq && \
|
|
|
|
apt-get install -y oracle-java8-installer && \
|
|
|
|
rm -rf /var/cache/oracle-jdk8-installer && \
|
|
|
|
apt-get clean
|
2016-04-22 00:45:17 +00:00
|
|
|
|
2016-11-10 18:12:59 +00:00
|
|
|
ENV NPM_CONFIG_UNSAFE_PERM true
|
2016-11-17 15:55:02 +00:00
|
|
|
|
|
|
|
# Locales
|
|
|
|
RUN locale-gen en_US.UTF-8
|
|
|
|
ENV LANG "en_US.UTF-8"
|
|
|
|
ENV LANGUAGE "en_US.UTF-8"
|
|
|
|
ENV LC_ALL "en_US.UTF-8"
|
|
|
|
|
|
|
|
# ENV PATH ${PATH}:${NDK_HOME}
|
|
|
|
|
|
|
|
# Install writable dir
|
|
|
|
RUN mkdir /tmp/opt && chmod 777 /tmp/opt
|
|
|
|
|