A typical containerized development environment for Angular CLI.
$ docker run -d -t apptower/angularcli
$ docker run -d -t apptower/angularcli -p 8080:4200
This image has an administrator user, node, with defaut password, node. You can login into it via SSH.
$ ssh node@[Container's IP]
To test an angular application, you must publish a port when starting the container instance.
Let's assume that you had passed the parameter, -p 8080:4200, while creating this container instance.
$ ng serve --host 0.0.0.0 --port 4200
Now you can open the browser and view it on http://[Docker Host's IP]:8088.
When you start the apptower/angularcli image, you can adjust the configuration of the instance by passing one or more environment variables.
ADMIN_PASSWORD
This variable is optional and allows you to specify the password of administrator.
$ docker run -d -t -e ADMIN_PASSWORD=1234 apptower/angularcli
The latest version of Angular CLI.
This is the latest version on a specific major number release.
This image point to a specific version of Angular CLI.