Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1234567FROM python:3.14-slimRUN apt-get update && apt-get install -y build-essential cmake && rm -rf /var/lib/apt/lists/*WORKDIR /appCOPY . .RUN pip install --no-cache-dir streamlit llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpuEXPOSE 7860CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]12345678910111213141516171819# Use 3.12 for the build (3.14 is currently too heavy for the Free Tier compiler)FROM python:3.12-slim# Install ONLY what is strictly necessaryRUN apt-get update && apt-get install -y \build-essential \&& rm -rf /var/lib/apt/lists/*WORKDIR /appCOPY . .# CRITICAL: We use a PRE-COMPILED wheel to avoid the OOM (Out Of Memory) errorRUN pip install --no-cache-dir streamlitRUN pip install --no-cache-dir llama-cpp-python \--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpuEXPOSE 7860CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
Dockerfile+15-3