You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Dockerfile that uses multiple build contexts with the COPY --from=<buildcontext> syntax. When building the image manually, I use the docker build command with the --build-context flag, like this:
However, I'm now trying to use TestContainers for .NET to automate my testing, and I can't find a way to specify multiple build contexts when building an image with ImageFromDockerfile.
My Questions:
Is there a way to specify --build-context for multiple build contexts directly in TestContainers for .NET?
If not, are there any plans to support this feature in the future?
What are the recommended workarounds for using multiple build contexts with TestContainers?
I’d prefer to keep my Dockerfile unchanged, as modifying it to merge contexts isn't an ideal solution for my use case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Dockerfile that uses multiple build contexts with the
COPY --from=<buildcontext>
syntax. When building the image manually, I use thedocker build
command with the--build-context
flag, like this:docker build --build-context abc=/path/to/context1 --build-context xyz=/path/to/context2 -f Dockerfile .
However, I'm now trying to use TestContainers for .NET to automate my testing, and I can't find a way to specify multiple build contexts when building an image with
ImageFromDockerfile
.My Questions:
--build-context
for multiple build contexts directly in TestContainers for .NET?I’d prefer to keep my Dockerfile unchanged, as modifying it to merge contexts isn't an ideal solution for my use case.
Thanks for any guidance!
Beta Was this translation helpful? Give feedback.
All reactions