:wave: I'm having an issue building a docker image...
# general
f
👋 I'm having an issue building a docker image using Azure's Container Registry. I'm sure I'm missing something trivial. First, when I try to build a
docker_environment
, the following correctly pulls the image and works correctly
Copy code
docker_environment(
    name="docker_linux",
    platform="linux_x86_64",  
    image="***.<http://azurecr.io/foo/bar:latest|azurecr.io/foo/bar:latest>",
    python_bootstrap_search_path=["<PATH>"],
)
However, when I try to build a
docker_image
where the base is also pulled from that same repository, I get a
failed to authorize
error
Copy code
docker_image(
    name="baz",
    dependencies=[...],
    image_tags=["local"],
)
Dockerfile
Copy code
FROM FROM ***.<http://azurecr.io/fizz/buzz:latest|azurecr.io/fizz/buzz:latest>
pants.toml
Copy code
[docker]
build_verbose = true
env_vars = ["DOCKER_CONFIG=%(homedir)s/.docker"]
Can someone point me in the right direction?
Solved by adding this to pants.toml
Copy code
[docker]
build_args = ["HOME"],
build_verbose = true