FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY . . RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["python", "app.py"]