FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py fiscal.py auth.py plaid_client.py rebuild_index.py ./ COPY docs/ ./docs/ EXPOSE 7860 # Rebuild ChromaDB then start the server CMD ["sh", "-c", "python rebuild_index.py && uvicorn app:app --host 0.0.0.0 --port 7860"]