Docker container for NativeScript development
1.3K
I don't want to install and configure Java, Android SDK, Ant, cordova etc.. life is too short.
git clone [email protected]:oren/docker-nativescript.git
cd docker-nativescript
docker build -t nativescript .
alias tns='docker run -it --rm --privileged -v /dev/bus/usb:/dev/bus/usb -v $PWD:/src nativescript tns'
The alias command lets you use tns for running any command inside the nativescript container.
tns create hello
cd hello
tns platform add android
tns run android
That's it, your app should be on your phone!
Github Repo: https://github.com/oren/docker-nativescript
The image is a modification of this Dockerfile
docker pull oreng/nativescript:latest