File size: 325 Bytes
17ca583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.10

# Set work directory
WORKDIR /app

# Copy all files into container
COPY . .

# Install requirements
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# Expose port (required for Spaces)
EXPOSE 7860

# Command to run the app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]