File size: 351 Bytes
11ba115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.12

WORKDIR /code

# Install necessary dependencies
RUN pip install fastapi pygithub uvicorn[standard] rich

# Grant permission for Python to create files in the entire /code directory
RUN chmod -R 777 /code

# Copy project files
COPY . .

# Run the FastAPI application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]