Skip to content

Mihai-B/angular-cli-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Docker image for @angular/cli

os: linux x64
docker hub: Docker Pulls
buy me a coffe: Buy a coffe

Available CLI versions

8.x: 8.3.15
9.x: 9.1.4
10.x: 10.1.3, 10.1.4
11.x: 11.0.5, 11.2.4, 11.2.10

Usage examples

This image has the same usage as Angular CLI (https://cli.angular.io/)

Creating a project

docker run -it --rm -w /app -v $(pwd):/app mihaibob/angular-cli:[version_you_need] ng new my-project-name

Generating a component

docker run -it --rm -w /app -v $(pwd)/my-project-name:/app mihaibob/angular-cli:[version_you_need] ng g component sample-component

Serving

docker run -it --rm -w /app -v $(pwd)/my-project-name:/app -p 4200:4200 mihaibob/angular-cli:[version_you_need] ng serve --host 0.0.0.0

Packages

 
 
 

Contributors