blog icon indicating copy to clipboard operation
blog copied to clipboard

如何使用 docker 高效部署前端应用

Open shfshanyue opened this issue 5 years ago • 2 comments

https://blog.xiange.tech/post/deploy-frontend-with-docker/

shfshanyue avatar Mar 20 '19 12:03 shfshanyue

Dockerfile中的复制命令为什么不是COPY而是ADD

YinghaoFu avatar Mar 21 '19 02:03 YinghaoFu

Dockerfile中的复制命令为什么不是COPY而是ADD

COPY 也是可以的,ADD 和 COPY 主要有以下两点不同,其他时候可以互换

  • ADD 支持 remote url 和 tar,COPY 不行
  • COPY 多阶段构建支持 --from,ADD 不行

@YinghaoFu

shfshanyue avatar Mar 21 '19 08:03 shfshanyue