Hi! Is there any way to define a docker_environment from a docker_image target? This would be very useful to run python tests in our production runtime. Thanks!
h
happy-kitchen-89482
09/02/2025, 4:20 AM
I believe that cannot currently be done in one pass. You would have to run Pants twice: once to build the image and then a second to consume it in the test.