Public Repository

Last pushed: a year ago
Short Description
Nativescript on Ubuntu 14.04
Full Description

FROM ubuntu:14.04

RUN dpkg --add-architecture i386 && \
apt-get update -y

RUN apt-get install curl lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386 -y

RUN curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get install -y nodejs

RUN apt-get install g++ -y

RUN apt-get install software-properties-common python-software-properties -y && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update -y && \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
apt-get install -y -q oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer

RUN export JAVA_HOME=$(update-alternatives --query javac | sed -n -e 's/Best: (.)\/bin\/javac/\1/p')

RUN wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz && \
tar -xf android-sdk_r24.4.1-linux.tgz && \
mkdir android && \
mv android-sdk-linux android/sdk && \
export ANDROID_HOME=/android/sdk && \
echo y | $ANDROID_HOME/tools/android update sdk --filter tools,platform-tools,android-23,build-tools-23.0.3,extra-android-m2repository,extra-google-m2repository,extra-android-support --all --no-ui

ENV ANDROID_HOME=/android/sdk

RUN npm install nativescript -g --unsafe-perm -y

WORKDIR /src

CMD ["bash"]

Docker Pull Command
Owner
anhvupham