File size: 369 Bytes
f1b8a40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim

WORKDIR /app

# Install uv
RUN pip install uv

# Copy requirements
COPY requirements.txt .

# Install dependencies
RUN uv pip install --system -r requirements.txt

# Copy code
COPY . .

# Expose port
EXPOSE 7860

# Run the server
# HF Spaces expect the app to run on port 7860
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]