alert-dawn-51425
04/07/2023, 1:19 PMalert-dawn-51425
04/07/2023, 1:27 PMhigh-yak-85899
04/07/2023, 2:06 PMrefined-addition-53644
04/07/2023, 2:14 PMdocker_image
target with dependency. You can see the last example in this tutorial
https://blog.pantsbuild.org/optimizing-python-docker-deploys-using-pants/curved-television-6568
04/08/2023, 12:54 PMdocker_image(name="base", ...) # this is src/images:base in this example
docker_image(
name="service",
instructions=[
"ARG BASE=src/images:base",
"FROM $BASE",
...
],
...
)
Only real world example I have right now is from the tests: https://github.com/pantsbuild/pants/blob/690e6a60ba244cc46dd191885ea7fa54a3e4554d/[…]src/python/pants/backend/docker/util_rules/dependencies_test.py