I'm in the process of adopting pants and I'm working on converting a Dockerfile that is two separate commands that generate files. I think it makes sense to pull those into pants and then copy the generated output into the docker container with COPY rather than generating them in the docker build itself.
I want to know what are the possible avenues I can go down to accomplish this. I see that I can run arbitrary commands with
shell_command but one of the commands is running python so Ideally I would have pants setup the environment for me and run it in some isolated way. I don't know if pants has support for this or not. In general I'm wondering what is the best way to have pants setup a runtime environment for the means of running a command that generates files that is then an input into another target (i.e. docker build)