-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
buildkit and experimental frontend #817
Comments
Sorry, don't understand this report. What's the difference compared to #816 ? The ONBUILD rule executes in the context of the importer. In what line do you want to use the cache mount? |
Well, I expect ONBUILD to be executed with frontend it was described (not in the context of importer) or to import the context from image to importer somehow... |
The |
We are using ONBUILD options in our multistage builds. For instance:
We wanted to use
# syntax = docker/dockerfile:1.0-experimental
frontend for mount=type=cache options in our build container, but because COPY command is inside ONBUILD statement, buildkit requires to set experimental on main dockerfiles.This is not very convenient, as we would have to update all our dockerfiles over all projects (which is avoided with the use of ONBUILD instructions).
Is there a workaroud for this? Maybe some kind of global option to set experimental frontend as default?
The text was updated successfully, but these errors were encountered: