I cannot cleanly solve building this Dockerfile. O...
# general
g
I cannot cleanly solve building this Dockerfile. On the one hand I'd need
pull=True
([See docker_image](https://www.pantsbuild.org/stable/reference/targets/docker_image#pull ) so that we pull the intermediate golang image but on the other hand I cannot use
pull-True
because I'm building off of a "transitive" base image. Any suggestions? Could this be fixed in the docker backend?
Copy code
ARG BASE_IMG=path/to/base/docker:mydockerfiletarget

FROM golang:1.25.1 AS gobuild
# build go binary...

FROM $BASE_IMG
COPY --from=gobuild /mybinary /bin/mybinary

# do more stuff...
This is the essential
pants package
output when `pull=True`:
Copy code
bash
# ok
Trying to pull golang:1.25.1...
# not ok
Trying to pull my-base-image...