Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1 unmodified line23456789101112131415161718192021221 unmodified lineWORKDIR /code# ติดตั้ง curlRUN apt-get update && apt-get install -y --no-install-recommends \curl \&& rm -rf /var/lib/apt/lists/*# Copy requirementsCOPY requirements.txt /code/requirements.txt# อัพเกรด pip และติดตั้ง dependenciesRUN pip install --no-cache-dir --upgrade pip && \pip install --no-cache-dir -r /code/requirements.txt# 🔥 ดาวน์โหลด wheel v0.3.2 (CPU - Linux x86_64) โดยตรง# 🔥 Install directly from URLRUN pip install "https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-cp311-linux_x86_64.whl"# สร้างโฟลเดอร์ staticRUN mkdir -p /code/static && chmod 777 /code/static1 unmodified line23456789101112131415161718192021221 unmodified lineWORKDIR /code# Copy requirementsCOPY requirements.txt /code/requirements.txt# อัพเกรด pipRUN pip install --no-cache-dir --upgrade pip setuptools wheel# ติดตั้ง dependencies ทั่วไปRUN pip install --no-cache-dir -r /code/requirements.txt# 🔥 ติดตั้ง llama-cpp-python จาก PyPI index# ใช้ --only-binary เพื่อบังคับใช้ manylinux wheel (ไม่ใช่ linux_x86_64)RUN pip install --no-cache-dir \--only-binary :all: \llama-cpp-python==0.2.90 \--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu# สร้างโฟลเดอร์ staticRUN mkdir -p /code/static && chmod 777 /code/static
Dockerfile+11-11