FROM python:3.10-slim WORKDIR /app COPY . /app RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir "numpy<2" torch==2.2.0+cpu --index-url https://download.pytorch.org/whl/cpu && \ pip install --no-cache-dir transformers>=4.44.0 peft>=0.11.0 flask accelerate sentencepiece safetensors EXPOSE 7860 ENV PORT=7860 CMD ["python3", "server.py"]