add ignore extra envs; rm chrome and celery from backend image
This commit is contained in:
parent
e23a340445
commit
057aaa8149
@ -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..."
|
||||
|
@ -47,6 +47,7 @@ class Settings(BaseSettings):
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
extra = "ignore"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
|
@ -47,6 +47,7 @@ class RagSettings(BaseSettings):
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
env_file_encoding = "utf-8"
|
||||
extra = "ignore"
|
||||
|
||||
|
||||
settings = RagSettings()
|
||||
|
Loading…
Reference in New Issue
Block a user