File size: 544 Bytes
8e12662
5ec4810
e986d8e
8e12662
 
e986d8e
5ec4810
 
 
 
9f1e69b
5ec4810
 
2cfeeb1
 
5ec4810
e986d8e
8e12662
5ec4810
2cfeeb1
 
 
 
8e12662
 
5ec4810
2cfeeb1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Install only essential system dependencies
RUN apt-get update && apt-get install -y \
    wget \
    curl \
    git \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

# Copy only requirements first (cache layer)
COPY requirements.txt .

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy all code
COPY . .

# Expose FastAPI port
EXPOSE 7860
ENV PORT=7860

# Run app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]