https://pulumi.com logo
Title
b

busy-soccer-65968

11/24/2020, 8:53 PM
i'm noticing
Docker.Image
building during preview. is this typical?
I have some rather large images and building during preview really slows down preview and they build again during update. Locally it's not that big cause of caching, but it still takes extra needless time.
l

little-cartoon-10569

11/24/2020, 8:59 PM
I think it is. You could wrap the code in
pulumi.isDryRun()
?
b

busy-soccer-65968

11/25/2020, 5:40 PM
haha thx. that's what I did. Sadly then the preview shows Image
delete
as the diff. however I have noticed it doesn't actually delete. Just sucks explaining that it says delete but doesn't actually do anything to peers.
l

little-cartoon-10569

11/25/2020, 7:35 PM
Feature-request time. I've checked the source code, there is no flag or combination of properties that skips the build. You can skip the push, but even if you cache the stages, the
dockerBuild
method of docker.js does eventually get called...