This repository holds a Dockerfile to provide the needed toolchain for building Angular web applications.
The Angular CLI is wrapped inside the Docker container and can be easily accessed using bash ng.sh
.
Adding an alias ng="bash myfolder/angular_builder/ng.sh"
to the environment profile (e.g. ~/.zshrc), the Angular CLI can be used as if it is installed locally
Switch into the container by using bash ng.sh bash
.
Because ng serve does not bind to an open connection by default (as we need in a Docker container), we have to start the command with the --host flag: e.g. ng serve --host 0.0.0.0 --disable-host-check