# Base image FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy app files COPY ./app /app/app COPY ./app/requirements.txt /app/requirements.txt # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Expose port EXPOSE 7860 # Start server CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]