-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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
Dockerfile FROM ../relative/path #4027
Comments
@bradfitz so you're essentially asking for non-tagged/named FROM, which cause one build to trigger another and wait until it gets told the IMAGE_ID. Given that the first build happens on the server, and only has that build's context, I doubt that There are 2 other proposals that might combine to give you a solution though - again, requiring the sub-builds to be inside the main one's context something akin to (I agree - I'd like to be able to have the dependency tree built from scratch too) |
Yes, INCLUDE and TAG would both be welcome and probably do what I need. |
Hello! Mainly:
Then from there, patches/features like this can be re-thought. Hope you can understand. |
Feature request....
Our project, Camlistore, vendors all our dependencies in-tree, so we can sync to any point in time and get a hermetic build.
We would also like to check in all our Dockerfiles, rather than exclusively using index.docker.io.
But if we keep the Dockerfiles in-tree, we can't use FROM to form a tree of common layers.
It would be nice if we could use FROM in a Dockerfile to refer to a relative path. For instance, if it begins with "./" or "../", then don't treat it as a index.docker.io-namespaced identifer, and use the filesystem instead.
The text was updated successfully, but these errors were encountered: