Skip to content

Play angular just through docker and without installing any angular and node software on your computer

Notifications You must be signed in to change notification settings

oh-my-docker/angular-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

angular-docker

Docker Repository on Quay

Play angular just through docker and without installing any angular and node software on your computer

docker pull quay.io/oh-my-docker/angular

create angular project

create a new angular project called demo and located on /Users/penxiao/tmp/angular-docker through docker volume.

docker run --rm -it -v /Users/penxiao/tmp/angular-docker:/omd quay.io/oh-my-docker/angular:latest new demo

only build

docker run -it --rm -v /Users/penxiao/tmp/angular-docker/demo:/omd quay.io/oh-my-docker/angular:latest build --prod --build-optimizer

build and serve angular project

for example, our angular project is demo in /Users/penxiao/tmp/angular-docker/demo

$ docker run -d --rm --name=angular-demo -it -v /Users/penxiao/tmp/angular-docker/demo:/omd -p 4200:4200 quay.io/oh-my-docker/angular:latest serve --host=0.0.0.0
b6c0b0b3a19325f7e42b5c7ec86d6ddef5b1822d70419e0361acf6f2b294c86d

check logs

$ docker logs angular-demo -f
** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ **

Date: 2018-05-21T06:10:59.583Z
Hash: c81cc3c9f7977164505e
Time: 14041ms
chunk {main} main.js, main.js.map (main) 10.6 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 227 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 5.22 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 15.6 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 3.37 MB [initial] [rendered]
ℹ 「wdm」: Compiled successfully.

open browser on localhost: http://127.0.0.1:4200/

image

About

Play angular just through docker and without installing any angular and node software on your computer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published