Improves the competitor reference analysis (Step 8) by replacing the previous LLM-only approach with a grounded, scraping-based method. - Implemented a new scraper to actively search for and parse competitor reference/case study pages. - The analysis is now based on actual website content, significantly increasing the accuracy and reliability of the results and preventing model hallucinations. - Updated documentation to reflect the new 'Grounded References' architecture.
33 lines
786 B
Docker
33 lines
786 B
Docker
# Stage 1: Build the React frontend
|
|
FROM node:18-alpine AS build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files and install dependencies
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
# Copy the rest of the frontend code and build
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Stage 2: Python backend orchestrator
|
|
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy requirements and install
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the build from the first stage
|
|
COPY --from=build-stage /app/dist ./dist
|
|
|
|
# Copy the orchestrator script and .env if needed (though env should be passed via docker-compose)
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 8000
|
|
|
|
# Command to run the orchestrator
|
|
CMD ["uvicorn", "competitor_analysis_orchestrator:app", "--host", "0.0.0.0", "--port", "8000"]
|