File size: 559 Bytes
298e633
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.10-slim

# Set working directory inside the container
WORKDIR /app

# Copy dependencies and install them
COPY ./requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

# Copy the application code and model files
COPY . /app

# Expose the standard Hugging Face Space port
EXPOSE 7860

# Command to run the app using Uvicorn
# 'app:app' means look for the object named 'app' inside the file named 'app.py'
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]