FROM python:3.12-slim RUN apt-get update && apt-get install -y \ build-essential \ libpq-dev \ git \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt psycopg2-binary COPY . . EXPOSE 7860 CMD ["python", "run.py"]