From a2bbf788f4f8b63d9d7578a8c326c85f8fa49ef6 Mon Sep 17 00:00:00 2001 From: catborise Date: Sun, 8 Nov 2026 16:03:23 +0300 Subject: [PATCH] build(docker): the build context leaves out docs, CI and the host installers The image took .github, doc, dev, the installer scripts, the Vagrantfile and the ruff cache, and a rotated log (*.log.1) of a used checkout. The list is now grouped by why a file stays out, without the entries for tools this repository does not use. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea --- .dockerignore | 84 +++++++++++++++++++++------------------------------ 1 file changed, 34 insertions(+), 50 deletions(-) diff --git a/.dockerignore b/.dockerignore index 450efe7a..b83efe79 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,66 +1,50 @@ -# Git -**/.git -**/.gitignore +# What the image does not need. Runtime data and secrets of a used checkout +# must never enter it (CI plants sentinels to check). -# Python bytecode & cache -**/__pycache__ -**/*.py[cod] -**/*$py.class -**/.pytest_cache -**/.coverage -**/htmlcov - -# Virtual environments & environment files -**/venv* -**/.venv* -**/env* -**/.env* - -# Local databases and runtime data (secret key, admin password, update backups) +# runtime data, secrets and local settings +data backups **/*.sqlite3* -data +**/*.log +**/*.log.* **/*.bak **/*~ **/*.swp **/*.swo -**/staticfiles -**/*.log **/console/cert.pem* **/dhcpd.* webvirtcloud/settings.py +**/staticfiles -# IDEs and OS +# virtualenvs, caches and editor files +**/venv* +**/.venv* +**/env* +**/.env* +**/__pycache__ +**/*.py[cod] +**/.ruff_cache +**/.pytest_cache +**/.coverage* +**/htmlcov **/.idea **/.vscode -**/.vs **/.DS_Store -**/.classpath -**/.project -**/.settings -**/.toolstarget -**/*.*proj.user -**/*.dbmdl -**/*.jfm **/.vagrant -# Docker and CI -**/.dockerignore -**/Dockerfile* -**/docker-compose* -**/azds.yaml -**/charts -**/secrets.dev.yaml -**/values.dev.yaml - -# Node / frontend build leftovers -**/node_modules -**/npm-debug.log -**/obj -**/bin - -# Documentation / metadata -README.md -AGENTS.md -CODEBASE_OVERVIEW.md -DEPENDENCY_UPGRADE_PLAN.md \ No newline at end of file +# repository, CI, docs and the other ways to install +.git +.gitignore +.github +.hadolint.yaml +.dockerignore +Dockerfile +docker-compose*.yml +_config.yml +pyproject.toml +*.md +doc +dev +Vagrantfile +install.sh +webvirtcloud.sh