Discontinued on dockerhub, because builds are not free for open source anymore.
10K+
This repo includes nativescript running on ubuntu-20.04 LTS.
It includes the Android SDK 30 and latest node.js v14.17.0.
It allows you with a single command to build your entire nativescript application for android.
Perfect for CI environments like jenkins or bitbucket pipelines.
For reproducible builds I added version branches / tags on docker hub.
Tag 20.04-14.17.0-8.0.2-30.0.3
Is creating a Docker container with
If you need more version combinations just create PRs on Bitbucket
docker run -v $(pwd):/app -it scratchy/nativescript-cli:20.04-14.17.0-8.0.2-30.0.3 bash -c "cd /app && tns build android"
This image can be used for developing nativescript apps in a consistent environment, rather than installing nativescript on your local machine. Follow the standard steps for using a devcontainer, and use a devcontainer.json file similar to this:
{
"name": "Sample Visual Studio Code Nativescript devcontainer.json configuration",
"image": "scratchy/nativescript-cli:20.04-14.17.0-8.0.2-30.0.3"
# Instead of "image", use "dockerFile": "<path to Dockerfile>",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"remoteUser": "tnsuser",
"mounts": [
"source=${localWorkspaceFolder}/Cache/.gradle,target=/home/tnsuser/.gradle,type=bind"
],
"runArgs": [
"--privileged",
"-v",
"/dev/bus/usb:/dev/bus/usb"
]
}
Notes:
Dockerfile, it should start with FROM scratchy/nativescript-cli:20.04-14.17.0-8.0.2-30.0.3 and then add customizations${localWorkspaceFolder}/Cache/.gradle is in .gitignore)Content type
Image
Digest
Size
1.4 GB
Last updated
over 5 years ago
docker pull scratchy/nativescript-cli