Skip to content

thesuhu/docker-node-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-node-angular

GitHub workflow Docker pull license

Docker images used to create containers ready with Node.js and Angular. This docker image is recommended for development only.

Usage

Run the container with:

docker run -d -t -p <host port>:<your app port> -v <your app host dir>:/usr/src/myapp --name <your container name> thesuhu/docker-node-angular:{TAG}

Specify the Angular version you will use in the above {TAG}. Angular versions 9, 12, 14, 15 and 17 are available.

Image Tag Node Angular
latest v22.0.0 v17.0.8
17.2 v22.0.0 v17.0.8
17.1 v20.13.1 v17.0.8
17 v18.20.0 v17.0.8
15 v16.16.0 v15.0.5

Example

docker run -d -t -p 4200:4200 -v /home/thesuhu/helloworld:/usr/src/myapp --name frontend thesuhu/docker-node-angular:17

Once the container is running, open a terminal inside the container and run npm i.

To start your application run:

ng serve --host 0.0.0.0 --disable-host-check

The application will automatically restart every time there is a change in the host directory.

License

MIT

About

Docker images used to create containers ready with Node.js and Angular

Resources

License

Stars

Watchers

Forks

Packages

No packages published