# Use official Python image FROM python:3.10-slim # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Set working directory WORKDIR /app # Copy application files COPY main.py ./ COPY requirements.txt ./ COPY Databases/ ./Databases/ # Install system dependencies RUN apt-get update && apt-get install -y \ gcc \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies RUN pip install --upgrade pip && pip install -r requirements.txt # Expose port (FastAPI default) EXPOSE 7860 # Command to run the FastAPI app CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]