Skip to content

alexanderwolz/angular-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Container for Angular (Docker)

GitHub release (latest by date) GitHub GitHub GitHub GitHub code size in bytes GitHub all releases

About

This repository holds a Dockerfile to provide the needed toolchain for building Angular web applications.

Environmental Setup

The Angular CLI is wrapped inside the Docker container and can be easily accessed using bash ng.sh.

Wrapping in an Alias

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

Starting the Angular environment

Switch into the container by using bash ng.sh bash.

Running ng serve

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