FROM python:3.11-slim # Install Node.js 22 for Vyla SDK (server-side scraping) RUN apt-get update && apt-get install -y curl && \ curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ apt-get install -y nodejs && \ apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /app # Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Node.js dependencies (Vyla SDK) COPY package.json . RUN npm install --omit=dev COPY . . EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]