# Build context exclusions. # # `target/` does not exist on a clean checkout, which is why builds have worked without this # file — but the moment anyone runs `cargo build` locally it becomes multi-GB, and every # `docker build` would ship all of it to the daemon for nothing (the Dockerfile only COPYs # Cargo.toml, Cargo.lock, src, static and migrations). On an EMULATED amd64 builder that # transfer is the slowest part of the build. target/ # Never let a real .env reach an image layer. .env .env.*