Dockerfile内容如下
FROM node:14.16.1 AS builderWORKDIR /appCOPY ./ /app/RUN npm installRUN npm run buildFROM nginxCOPY --from=builder app/dist /usr/share/nginx/htmlEXPOSE 80
构建镜像之后会产生无用的中间镜像,应该怎么直接在Dockerfile中删除呢
Dockerfile只能用来构建镜像,无法删除镜像