I have an angular-js application and i set it in container.
$ git clone https://github.com/angular/angular-seed.git
$ cat Dockerfile
With above simple Dockerfile, I should access the website via port 8000 on my host. But it is not. After check the issue, I think the problem is in package.json:
"start": "http-server -a localhost -p 8000 -c-1",
So it starts on port 8000 on localhost.
If I change this line to
"start": "http-server -p 8000 -c-1",
I can access the application from my mac.
So may I know how to mapper the localhost:port in container to outside?