Uh oh!
There was an error while loading. Please reload this page.
Document legacy build vs BuildKit differences - #15477
Conversation
✅ Deploy Preview for docsdocker ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
andreisilviudragnea
commented
Sep 7, 2022
@craig-osterhout When will this be reviewed and merged? |
usha-mandya
commented
Oct 18, 2022
@andreisilviudragnea Could you rebase the PR? |
06c9675 to
d748338Compare✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
andreisilviudragnea
commented
Oct 20, 2022
@usha-mandya Done. |
usha-mandya
commented
Oct 20, 2022
Thank you @andreisilviudragnea. One of our team members will take a look and get back to you. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1956bc6 to
017cc33Compare
dvdksn
left a comment
There was a problem hiding this comment.
lgtm, thanks a lot @andreisilviudragnea
Proposed changes
I documented how legacy engine executes all stages of a multi-stage Dockerfile from the beginning of the Dockerfile up to the target stage, even if target stage does not depend on some intermediate stages. When BuildKit is enabled, this (possible bug) does not happen and only transitive dependency stages of the target stage get executed.
I also documented that BuildKit is not enabled by default on all platforms (it is on macOS, but not on Linux) and that multi-stage builds should always be executed with BuildKit enabled in order to avoid the problem described above.
Related issues
Fixes#12231