File size: 374 Bytes
093b386
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# βœ… Use Python base image
FROM python:3.11

# βœ… Set working directory
WORKDIR /app

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

# βœ… Copy FastAPI script
COPY app.py .

# βœ… Expose the port used by FastAPI
EXPOSE 7860

# βœ… Run FastAPI server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]