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"] | |