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]
ng buildTo 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
apptower/angularcli or apptower/angularcli:latestThe latest version of Angular CLI.
apptower/angularcli:<Major Releases>This is the latest version on a specific major number release.
apptower/angularcli:<Major Releases>.<Minor Releases>.<Patch releases>This image point to a specific version of Angular CLI.
Content type
Image
Digest
sha256:b7abdc982…
Size
454.8 MB
Last updated
over 2 years ago
docker pull apptower/angularcli:15.2.11