square-psychiatrist-19087
07/25/2023, 7:37 AMRUN
steps: first install all the third party dependencies and then install the first party code. Pants supports pex_binary
so I tried it, but it builds a docker image in one RUN
step which is not docker layer cache friendly and it builds third party dependencies every time I change first party code. pex_binary
target also has include_requirements
and include_sources
arguments, but I'm not sure how to use them, shall I create 2 targets - one for requirements and one for sources? So my question is - how can I avoid rebuilding third party dependencies on every first party code change?fast-refrigerator-12613
07/25/2023, 11:10 AMsquare-psychiatrist-19087
07/25/2023, 2:10 PM