Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全量构建 还是 增量构建 #2

Open
sinkcup opened this issue Jun 11, 2021 · 0 comments
Open

全量构建 还是 增量构建 #2

sinkcup opened this issue Jun 11, 2021 · 0 comments

Comments

@sinkcup
Copy link
Member

sinkcup commented Jun 11, 2021

  1. 全量构建:定期(比如每天)全部重新构建

代码:FROM php:8.0,永远不用改
优点:省事
缺点:全量构建时间很久,而且随着镜像增加,会越来越久

  1. 增量构建:只构建新增/变化的 Dockerfile

代码:FROM php:8.0.1,需要经常改
优点:构建速度快
缺点:维护成本高

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant