-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels