File size: 521 Bytes
624f3a9
80d8f65
272ed75
19743e3
272ed75
624f3a9
19743e3
272ed75
624f3a9
 
 
 
19743e3
 
624f3a9
19743e3
272ed75
624f3a9
19743e3
272ed75
624f3a9
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use a Python ≥3.10 image so google-generativeai and supabase install correctly
FROM python:3.10-slim

WORKDIR /app

# Copy only requirements first to leverage layer caching
COPY requirements.txt .

# (Optional) Upgrade pip to latest
RUN pip install --no-cache-dir --upgrade pip

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

# Copy your app code
COPY . .

# Expose the port your app listens on
EXPOSE 7860

# Run with Gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]