File size: 386 Bytes
268c7f9
 
 
 
 
 
b7f4fe2
 
268c7f9
 
 
 
 
 
 
 
b7f4fe2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use the official Python image from the Docker Hub
FROM python:3.10-slim

# Set the working directory in the container
WORKDIR /app

COPY requirements.txt .
RUN pip install -r requirements.txt

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port FastAPI will run on
EXPOSE 7860

# Command to run the FastAPI application
CMD ["python", "run.py"]