Dockerfile – Angular2

FROM ubuntu:latest RUN apt-get update && apt-get -y upgrade RUN apt-get -y install nodejs RUN apt-get -y install npm RUN apt install nodejs-legacy RUN npm cache clean RUN npm install -g angular-cli --force RUN npm install -g watchman --force ENV HOME=/home/app WORKDIR $HOME RUN ng new angular2 WORKDIR /home/app/angular2 EXPOSE 10000 CMD sudo ng serve --port 10000 

你好,我有这个docker文件…

 docker build -t angular2 . docker run -d angular2 

这样对吗? http://192.168.99.100:10000

我不工作。 为什么?