File size: 426 Bytes
18603b1
1479e7a
18603b1
 
 
 
 
 
28d8ed8
18603b1
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use an official lightweight Python image
FROM python:3.12

# Set working directory
WORKDIR /app

# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy the FastAPI and model files
COPY main.py backend.py ./

# Expose the port for FastAPI
EXPOSE 8000

# Run the FastAPI server using Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]