From 388108fff39d7731796555bd52090d99b6d9b0fc Mon Sep 17 00:00:00 2001 From: Alberto-Audrix Date: Tue, 17 Nov 2026 13:25:14 +0700 Subject: [PATCH] fix docker compose repeating copy during docker build --- .dockerignore | 37 ++++++++++++++++++++++++++++++++----- ai-insight/.dockerignore | 13 +++++++++++++ docker-compose.yml | 2 +- 3 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 ai-insight/.dockerignore diff --git a/.dockerignore b/.dockerignore index dd4c05a..4e91f1c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,25 +1,52 @@ +# Dependencies & caches node_modules +**/node_modules npm-debug.log +.vite +.pytest_cache +**/.pytest_cache +**/__pycache__ +**/*.pyc +**/*.pyo + +# Environment & local files .env .env.local .env.*.local +*.local + +# Build & test outputs dist dist-ssr coverage -.vite -*.local +kpi-results.json + +# Git, IDE & AI agent directories .git .gitignore +.gitattributes +.claude +.opencode +.superpowers +.husky + +# Non-runtime project directories (not used by api/cron/frontend images) +ai-insight +backup +docs +scripts +*.md + +# Docker compose files docker-compose*.yml -DOCKER.md -README.md # Backend artifacts (api image copies backend/ explicitly) backend/.venv backend/venv -backend/__pycache__ backend/db.sqlite3 backend/data backend/media backend/staticfiles +backend/logs +backend/database backend/*.egg-info diff --git a/ai-insight/.dockerignore b/ai-insight/.dockerignore new file mode 100644 index 0000000..642acb9 --- /dev/null +++ b/ai-insight/.dockerignore @@ -0,0 +1,13 @@ +# Raw PDF/DOCX sources & intermediate text extracts (not needed at runtime) +documents/ +extracted_txt/ + +# Python caches & local env +__pycache__/ +**/__pycache__/ +*.pyc +*.pyo +.pytest_cache/ +.env +.env.* +*.md diff --git a/docker-compose.yml b/docker-compose.yml index d81a50a..bec771e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -141,7 +141,7 @@ services: start_period: 60s cron: - image: dashboard-cpsp-cron + image: dashboard-cpsp-api build: context: . dockerfile: docker/Dockerfile.api