#Changes are not reflected in the host directory when using with_mounted_directory
1 messages · Page 1 of 1 (latest)
Yes! That's expected and intentional. The typical flow is get source from host, mount in a container, do a build, export to host (or mount/copy to a new container).
https://github.com/jpadams/helderco-dagger-examples/blob/main/multibuild/build.py#L64-L65
👋 this is expected. It's not actually a bind mount to the host filesystem but a snapshot of that directory in the current build pipeline that you're working on. This link provides an example on how mounting works and how to export files from your pipline: https://docs.dagger.io/421437/work-with-host-filesystem