javascript - How to run Angular 2 app on docker machine? -
i have deployed simple angular 2 app created using angular-cli,after building docker image i'm running on virtual box container
app running on container , exposed port if tried access url,getting site can't reached.
below dockerfile
from node:boron # create app directory run mkdir -p /usr/src/app workdir /usr/src/app # install app dependencies copy package.json /usr/src/app/ run npm install # bundle app source copy . /usr/src/app expose 5655 cmd [ "npm","start" ]
package.json
{ "name": "baconv1", "scripts": { "ng": "ng", "start": "ng serve -h 0.0.0.0" .... .... }
even in package.json tried 2 ways setting start "ng serve"
, "ng serve -h 0.0.0.0"
i checked twice app running on container machine
console
even after expose default angular port 4200 not worked!!!
please me correcting need change config in dockerfile or package.json
Comments
Post a Comment