Skip to content
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

The generated Dockerfile is left in working directory when using FromFile #280

Open
rjnilsson opened this issue Oct 11, 2022 · 0 comments
Open

Comments

@rjnilsson
Copy link

When using the FileBuilder/FromFile in combination with WorkingDirectory the copied Dockerfile seems to always get left in the working directory.

As I need to set the working directory to get the proper build context, this means that I now have an extra Dockerfile in my filesystem (as the build context is a step above the location of the Dockerfile in my case). This in turn means that I'm likely to commit that extra Dockerfile at some point.

Would it be possible to discard that generated Dockerfile during Dispose of the image? At least be able to do it by passing an extra argument to the FromFile method, or, maybe even better, add an explicit "WithBuildContext" method?

All this unless I've missed out on the option of just setting the build context? I really don't have a need for copying or modifying the Dockerfile; I only want to use an existing file and be able to pass build arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant