File size: 567 Bytes
43304e1
 
e1c936b
 
 
 
 
 
43304e1
 
e1c936b
43304e1
 
 
e1c936b
 
 
 
43304e1
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]