FROM python:3.10-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the application code COPY ./app /app/app # Create insights directory RUN mkdir -p /app/insights # Expose the port EXPOSE 8000 # Set environment variables ENV PYTHONPATH=/app ENV PYTHONUNBUFFERED=1 # Run the application CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]