Sign inSign up

thesuhu/docker-node-angular

By thesuhu

Updated 11 months ago

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

Image
Web servers
0

1.3K

thesuhu/docker-node-angular repository overview

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 TagNodeAngular
latestv22.0.0v17.0.8
17.2v22.0.0v17.0.8
17.1v20.13.1v17.0.8
17v18.20.0v17.0.8
15v16.16.0v15.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

Tag summary

Content type

Image

Digest

sha256:347b7184e

Size

437.5 MB

Last updated

11 months ago

docker pull thesuhu/docker-node-angular