From c77440161c71833189bc9664a0990f79ede0b19d Mon Sep 17 00:00:00 2001 From: addshore Date: Sat, 17 Oct 2026 00:12:36 +0100 Subject: [PATCH] build: exclude development files from Docker context --- .dockerignore | 49 +++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 07413603d..47910df77 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,7 +1,48 @@ -# We only want to ignore these for the docker build -# I hope they are included in docker-compose... +# Dependencies are installed in the Composer build stage. /vendor + +# Local configuration and credentials. +.env +.env.* +/.aws +/.agents +/.codex + +# Git and CI configuration. +/.git +/.github +/.gitignore +/.git-blame-ignore-revs + +# Development orchestration and tooling. +**/docker-compose*.yml +/Makefile +/.editorconfig +/.hadolint.yml +/pint.json +/rector.php + +# Tests and generated test caches. +/tests +/phpunit.xml +/.phpunit.cache +/.phpunit.result.cache + +# Documentation and SQL preparation helpers (keep runtime SQL files). +/docs +/README.md +/database/mw/README.md +/database/mw/CHANGES.md +/database/mw/cleanSql.php + +# Generated runtime data (keep directory placeholders). /bootstrap/cache/* /storage/*.key -.env -Makefile \ No newline at end of file +/storage/logs/* +!/storage/logs/.gitignore +/storage/framework/cache/* +!/storage/framework/cache/.gitignore +/storage/framework/sessions/* +!/storage/framework/sessions/.gitignore +/storage/framework/views/* +!/storage/framework/views/.gitignore