add ignore extra envs; rm chrome and celery from backend image

This commit is contained in:
Даниил Ивлев 2025-09-12 11:18:05 +05:00
parent e23a340445
commit 057aaa8149
3 changed files with 2 additions and 8 deletions

View File

@ -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..."

View File

@ -47,6 +47,7 @@ class Settings(BaseSettings):
class Config:
env_file = ".env"
extra = "ignore"
settings = Settings()

View File

@ -47,6 +47,7 @@ class RagSettings(BaseSettings):
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
extra = "ignore"
settings = RagSettings()