File size: 424 Bytes
2f9adb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Lightweight Python image
FROM python:3.9-slim

# To Set the working directory
WORKDIR /app

# To Copy your files into the container
COPY . /app

# To Install the necessary libraries
RUN pip install --no-cache-dir -r requirements.txt

# To Open the port Hugging Face expects (7860)
EXPOSE 7860

# To Start the FastAPI server using Uvicorn
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]