From 057aaa8149a06b9f656a1e8fc894d2a6366e4325 Mon Sep 17 00:00:00 2001 From: tdjx Date: Fri, 12 Sep 2025 11:18:05 +0500 Subject: [PATCH] add ignore extra envs; rm chrome and celery from backend image --- Dockerfile | 8 -------- app/core/config.py | 1 + rag/settings.py | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2df423f..3e7fb3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,10 +20,6 @@ COPY pyproject.toml uv.lock ./ # Install Python dependencies RUN uv sync --frozen --no-dev -# Install Playwright and Chromium for PDF generation -RUN uv run playwright install-deps -RUN uv run playwright install chromium - # Copy application code COPY . . @@ -55,10 +51,6 @@ fi echo "Running database migrations..." uv run alembic upgrade head -# Start Celery worker in background -echo "Starting Celery worker in background..." -uv run celery -A celery_worker.celery_app worker --loglevel=info --pool=solo & - # Start FastAPI server if [ "\$APP_ENV" = "development" ]; then echo "Starting FastAPI development server..." diff --git a/app/core/config.py b/app/core/config.py index 46892a3..e5fd88e 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -47,6 +47,7 @@ class Settings(BaseSettings): class Config: env_file = ".env" + extra = "ignore" settings = Settings() diff --git a/rag/settings.py b/rag/settings.py index 84b3ebb..c7b0c76 100644 --- a/rag/settings.py +++ b/rag/settings.py @@ -47,6 +47,7 @@ class RagSettings(BaseSettings): class Config: env_file = ".env" env_file_encoding = "utf-8" + extra = "ignore" settings = RagSettings()