我尝试忽略 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)