小编Ven*_*kat的帖子

Angular 在 docker 中不起作用,因为它找不到模块 @angular-devkit/build-angular

我尝试忽略 node_modules 但仍然对我不起作用,即使在忽略 node_modules 之后我仍然面临同样的错误

yaml文件:

version: '3.5'

services:
    angular-docker:
        hostname: localhost
        container_name: angular-docker
        build: ./angular-doc
        volumes:
          - './angular-doc:/usr/src/app/'
        ports:
          - '4200:4200'
Run Code Online (Sandbox Code Playgroud)

泊坞窗文件:

FROM node:10.12.0

RUN mkdir usr/src/app

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install -g @angular/cli@latest

COPY . .

EXPOSE 4200

CMD ng serve --host 0.0.0.0
Run Code Online (Sandbox Code Playgroud)

jasmine asp.net-mvc-4 protractor cucumberjs angular

5
推荐指数
1
解决办法
1874
查看次数

标签 统计

angular ×1

asp.net-mvc-4 ×1

cucumberjs ×1

jasmine ×1

protractor ×1