File size: 417 Bytes
dd9b275
a17f59d
 
 
 
 
dd9b275
a17f59d
 
dd9b275
 
 
a17f59d
dd9b275
a17f59d
 
dd9b275
a17f59d
 
 
dd9b275
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# PyTorch GPU runtime
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime

# Set working directory
WORKDIR /app

# Copy requirements
COPY requirements.txt .

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

# Copy project files
COPY . .

# Hugging Face Spaces port
EXPOSE 7860

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