UPDATE: check my reply for answer! Maybe this will...
# ask-community
m
# UPDATE: check my reply for answer! Maybe this will help someone. Is there a way to rebuild the whole image with no cache? I am not able to find what I have to pass to
.deploy
to build the whole image again. I already tried
Copy code
image=DockerImage(
            name="myworkflow",
            tag="latest",
            dockerfile="Dockerfile",
            build_kwargs={"nocache": True},
But for some reason the build_kwargs is not recognized (I am getting an error)
1
After checking the definition of the DockerImage class, it turns out that the build_kwargs is just a list of another arguments you would like to pass to the build directly. In other words, no need for dict or list, just pass the arguments directly. Meaning:
Copy code
image=DockerImage(
            name="myworkflow",
            tag="latest",
            dockerfile="Dockerfile",
            nocache=True,
1