square-laptop-3318703/17/2023, 5:46 PM
is an dependency? Meaning that some other targets depend on a docker image. e.g. running tests using that image, building another image using it as a base image, etc.
broad-processor-9240003/17/2023, 8:21 PM
square-laptop-3318703/17/2023, 10:08 PM
)? I only want to rerun when necessary. A few options I can think of are 1. Single Dockerfile with separate layer and rely on docker build cache -> difficult to reuse cache in CI/CD and sometimes save/load are still slow when the final image is big. 2. Use pants caching: Two dockerfile,
adds some specific tag (e.g.
) and the next
uses it (
). Pants dependency could be set so that building
, it could skip building
if not changed. -> relying on tag seems brittle Any thoughts?
broad-processor-9240003/18/2023, 2:23 AM
square-laptop-3318703/20/2023, 2:35 PM