Angular 7在docker中不起作用,npm安装无法继续

时间:2018-11-28 14:18:18

标签: angular docker angular7

我遵循以下步骤

  1. ng new angularApp
  2. npm start http://localhost:4000工作正常
  3. Dockerfile

    FROM node:8
    
    RUN mkdir -p /usr/src/app
    
    WORKDIR /usr/src/app
    
    Copy dependency definitions
    COPY package.json /usr/src/app
    
    
    RUN npm install
    
    COPY . /usr/src/app
    Expose the port the app runs in
    EXPOSE 4200
    
    
    CMD ["npm", "start"]
    
  4. 我执行了docker build -t angular:dev .

我得到这个输出。请帮助

Step 5/8 : RUN npm install
 ---> Running in 48d3519ff1f1
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.

0 个答案:

没有答案