[Enhancement]: Cache FromDockerfile
builds to allow multiple containers using the same image
#1485
Labels
enhancement
New feature or request
Proposal
When using
FromDockerfile
, the image is built every time the container is requested, but the contents of that image are unlikely to change. Being able to specify a cache key or something to avoid a secondary build would be appreciated.See #1484 for how I've worked around this already. The following being the code I've used:
Note how it effectively gutwrenches the image name out of the container so it can reuse it later as
testcontainers.ContainerRequest{Image: mmrImage}
.The text was updated successfully, but these errors were encountered: