# 1. Use Python 3.13 (Matches your GitHub Wheel) FROM python:3.13-slim # 2. Set up user RUN useradd -m -u 1000 user USER user ENV PATH="/home/user/.local/bin:$PATH" WORKDIR /home/user/app # 3. Install System Dependencies # We keep these because llama-cpp still needs the shared libraries to run USER root RUN apt-get update && apt-get install -y \ libopenblas-dev \ libgomp1 \ && rm -rf /var/lib/apt/lists/* USER user # 4. Install Gradio and other tools # I removed the "force-reinstall" of old versions since 3.13 is new # and works better with the latest versions. RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir \ gradio \ huggingface-hub # 5. Install YOUR Llama-cpp-python Wheel # I updated this to the link from your screenshot RUN pip install --no-cache-dir \ https://github.com/Jameson040/my_lama-wheels/releases/download/v0.1/llama_cpp_python-0.3.16-cp313-cp313-linux_x86_64.whl # 6. Copy App Code COPY --chown=user . . # 7. Start App CMD ["python", "app.py"]