Open akramarev opened 3 days ago
@akramarev as part of our validation checks we attempt to parse the Dockerfile for syntactic correctness, and it does seem we only understand the built-in syntax. At first glance I'm not sure how to best support this. At a minimum we could try to detect exotic syntax and disable this validation in those cases.
I hear you @blampe. There are not that many docker parser directives, so it shouldn't be a problem to detect them and disable additional validation.
But out of curiosity (and without looking into the code), why does @pulumi/docker-build provider validate the syntax additionally, why not just delegate it to BuildKit entirely?
What happened?
I'm trying to use @pulumi/docker-build provider to build this Dockerfile:
However when I run
pulumi up
I get this error:My attempts to provide synax through build arguments failed as well - same error:
Is there a way to support custom docker syntax and specifically COPY --parents flag?
Example
See above
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).