Something is amiss... With the following: ```docke...
# general
b
Something is amiss... With the following:
Copy code
docker_image(
    name="special-img",
    dependencies = [":large_files_dep"],
    repository = "special",
    image_tags=["thingy"],
    registries=["local"],
    instructions=[
        "FROM ubuntu:20.04",
        "COPY large_dir /usr/bin/app/place",
    ]
)
The directory in question is mutli-GB, 100k+ files. If I crack open the sandbox and build it, it takes seconds, but building it via Pants takes at least 5 minutes (I killed it at 300s)
🙈 1
Also the target is a single tar file I unzip in the sandbox with a plugin. So I doubt it has to do with pants trying to cache/hash things
Enabling build kit via
env_vars = ["DOCKER_BUILDKIT=1"]
fixed it
I assumed it used buildkit by default 🙈
c
Ah, maybe should be an option for that..? Or just default to enabled unless provided otherwise..
b
I dunno enough to know if thats kosher 🤷‍♂️