important-restaurant-1284801/11/2023, 5:33 PM
busy-vase-3920201/11/2023, 5:40 PM
busy-vase-3920201/11/2023, 6:04 PM
aloof-appointment-3098701/12/2023, 3:30 PM
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
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
and then execute Docker compose independently of Pants.