File size: 390 Bytes
f30e3e5
 
73df9d6
f30e3e5
73df9d6
 
f30e3e5
3ab5798
f30e3e5
73df9d6
f30e3e5
3ab5798
 
f30e3e5
 
3ab5798
f30e3e5
73df9d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use a slim Python image
FROM python:3.9-slim

# Set working directory
WORKDIR /app

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

# Copy app code and models
COPY . .

# Expose the default port (Hugging Face uses 7860, but can be any port)
EXPOSE 7860

# Start uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]