You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a discussion on how build-contract relates to some core Docker design decisions.
Example: We have a FROM nginx build that needs to include a js file built with webpack, i.e. a quite lengthy Node.js/NPM execution. A typical build server like Jenkins would have Node.js installed locally and produce the js in a step prior to running docker build on the target image. A FROM node build could easily do the build, but we wouldn't get the file out of it, at least not at build time.
The target build could install the dependency + run the build + clean up, but that's quite messy and needs to make assumptions about the nginx image.
Relates to moby/moby#13026, where "Multi-stage building" looks like a similar concept.
The text was updated successfully, but these errors were encountered:
This is a discussion on how build-contract relates to some core Docker design decisions.
Example: We have a
FROM nginx
build that needs to include a js file built with webpack, i.e. a quite lengthy Node.js/NPM execution. A typical build server like Jenkins would have Node.js installed locally and produce the js in a step prior to running docker build on the target image. AFROM node
build could easily do the build, but we wouldn't get the file out of it, at least not at build time.The target build could install the dependency + run the build + clean up, but that's quite messy and needs to make assumptions about the
nginx
image.Relates to moby/moby#13026, where "Multi-stage building" looks like a similar concept.
The text was updated successfully, but these errors were encountered: