Using Dockerfile
docker build -f Dockerfile.dev .
docker run -it -p 3000:3000 -v /app/node_modules -v $(pwd):/app <imageid>
Using Docker Compose
docker-compose up
docker run -it <imageid> npm run test
docker-compose up
docker exec -it <containerid> npm run test
docker build .
docker run -it -p 3000:80 <imageid>