Is there a good way of making sure astro docker builds don’t pull from cache?


You might be cloning some git repos on build and noticing that it pulls from cache instead of cloning the repo. Ideally, you might want to have it clone the latest SHA for that repo upon every build.

Right now, that’s not something you can do - when the project image gets built (with both astro airflow start and astro airflow deploy ), Docker will not check whether the dependencies have been changed (as long as their reference in the project is the same) and will pull from cache every time.

Currently, there’s no easy way of making sure those builds don’t pull from cache other than deleting the image - but we have it on our roadmap! We’re envisioning a --no-cache flag you’d pass in the CLI.

Feel free to track the GitHub issue here.

1 Like