From dc9af48434bd480d8b2073a1f794295db0774a07 Mon Sep 17 00:00:00 2001 From: Eugen Birkenfeld Date: Fri, 22 May 2026 14:36:42 +0500 Subject: [PATCH] 46858 fix(docker): add source code copy to backend Dockerfile --- backend/.dockerignore | 54 ++++++++++++++++++++++++++++++++++++++++++- backend/Dockerfile | 4 ++++ 2 files changed, 57 insertions(+), 1 deletion(-) diff --git a/backend/.dockerignore b/backend/.dockerignore index a99ab57d9..6523cbb1a 100644 --- a/backend/.dockerignore +++ b/backend/.dockerignore @@ -1,3 +1,55 @@ +# Version control +.git +.gitignore + +# IDE / Editor .idea +.vscode +.cursor + +# Python caches +__pycache__ +*.py[cod] +*.pyo .pytest_cache -.git \ No newline at end of file +.mypy_cache +.ruff_cache +.coverage +coverage.xml +htmlcov/ + +# Virtual environments +.venv +venv +env + +# Docker (avoid recursive copy) +Dockerfile +docker-compose*.yml +.dockerignore + +# Logs +*.log +django_queries.log + +# Local env files +.env +default.env + +# OS files +.DS_Store +Thumbs.db + +# Build artifacts +staticfiles/ +tmp/ + +# Google credentials (should be mounted, not baked in) +google_api_credentials.json + +# Pre-commit +.pre-commit-config.yaml + +# Database files +*.sql +*.sqlite3 \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile index eb5c3c524..ba4181af0 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -25,3 +25,7 @@ COPY ./pyproject.toml ./poetry.lock /tmp/ WORKDIR /pneumatic_backend RUN poetry config virtualenvs.create false && \ poetry install --without dev --no-root --no-interaction --directory /tmp + +# Copy application source code (for production/Railway builds) +# In local dev, docker-compose volume mounts override this layer +COPY . .