File size: 463 Bytes
2dab9bf
 
 
 
c0adfb1
 
2dab9bf
c0adfb1
2dab9bf
 
 
c0adfb1
2dab9bf
 
c0adfb1
2dab9bf
 
c0adfb1
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10-slim

RUN apt-get update && apt-get install -y git && apt-get clean

# Set working directory to root of copied repo
WORKDIR /

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

# Copy everything from the repo root into the container root
COPY . .

# Expose port for Hugging Face
EXPOSE 7860

# ✅ Launch server.py's FastAPI app
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]