database / Dockerfile
DIVY118's picture
Update Dockerfile
11ba115 verified
raw
history blame contribute delete
No virus
351 Bytes
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"]