FROM python:3.10-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu RUN pip install -r requirements.txt COPY . . EXPOSE 7860 CMD ["python", "handler.py"]