Hi! I have a python repo and I want to build a doc...
# general
s
Hi! I have a python repo and I want to build a docker image in 2
RUN
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?
1
f
s
Thanks!