Pre-Requisites (in-case there is any dependency issue):
- "NODE_VERSION": "16.13.0",
- "NPM_VERSION": "8.1.0",
Install packages locally inside newsapp/ folder
npm i
-
Build using Dockerfile:
docker build -t newsapp .
-
Check the newly created image:
docker images
-
Run the image in the container:
docker run --rm -it --name newsapp -p 3000:3000 newsapp