mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-03 02:07:03 +00:00
fix: bundle categories into Docker image for Coolify deployment
Coolify remaps volume mounts to its own managed directories, so ./categories was mapped to an empty dir instead of the repo data. Changes: - Backend build context changed to repo root (.) so categories/ is accessible - Dockerfile copies categories into /data/initial-categories/ - startup.sh seeds /data/categories from bundled data if empty - Removed categories volume mount (reports still persisted via volume) - Added root .dockerignore (categories NOT excluded) - Updated CI workflow to match new build context Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
38
.dockerignore
Normal file
38
.dockerignore
Normal file
@@ -0,0 +1,38 @@
|
||||
# Git
|
||||
.git/
|
||||
.gitignore
|
||||
|
||||
# IDE
|
||||
.vscode/
|
||||
.idea/
|
||||
.DS_Store
|
||||
|
||||
# Frontend (not needed for backend image)
|
||||
admin-panel/node_modules/
|
||||
|
||||
# Python cache
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*.so
|
||||
.venv/
|
||||
venv/
|
||||
|
||||
# Docs
|
||||
docs/
|
||||
*.md
|
||||
!backend/requirements.txt
|
||||
|
||||
# Testing
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
htmlcov/
|
||||
|
||||
# Logs and temp
|
||||
*.log
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
# Reports (use volume)
|
||||
reports/
|
||||
|
||||
# NOTE: categories/ is NOT excluded — it's bundled into the backend image
|
||||
Reference in New Issue
Block a user