important-restaurant-12848
01/11/2023, 5:33 PMbusy-vase-39202
01/11/2023, 5:40 PMcurved-television-6568
01/11/2023, 5:43 PMdocker-compose
in Pants.
There are a couple of related issues to this:
https://github.com/pantsbuild/pants/issues/16362
https://github.com/pantsbuild/pants/issues/15925busy-vase-39202
01/11/2023, 6:04 PMaloof-appointment-30987
01/12/2023, 3:30 PMfiles
target to reference the source code? It sounds like you may be mounting a volume in your Docker container so that changes on your host machine are reflected in your container? In that case, the above suggestion is not useful. I used this approach to gather all the source files needed to compile our Go app inside a Docker image because the go_binary
target compiles only for the host platform and was incompatible with our container targets.
The approach I've taken to use Docker compose is to build the images using Pants docker_image
and then execute Docker compose independently of Pants.