Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files1 unmodified line2345678910111213141516171819201 unmodified lineWORKDIR /app# Install system toolsRUN apt-get update && apt-get install -y \build-essential \curl \&& rm -rf /var/lib/apt/lists/*# Install Python requirementsRUN pip install --no-cache-dir fastapi uvicorn llama-cpp-python# Download MPT-7B Q2 from your specific linkRUN curl -L "https://huggingface.co/maddes8cht/mosaicml-mpt-7b-chat-gguf/resolve/main/mosaicml-mpt-7b-chat-Q2_K.gguf?download=true" -o mpt-7b-q2.gguf# Only copy the backend codeCOPY app.py .EXPOSE 78601 unmodified line234567891011121314151617181920212223241 unmodified lineWORKDIR /app# Install system tools (curl for the model, build-essential just in case)RUN apt-get update && apt-get install -y \build-essential \curl \&& rm -rf /var/lib/apt/lists/*# Fix: Use the pre-built CPU wheel to skip the "Building wheel" stepRUN pip install --no-cache-dir \fastapi \uvicorn \--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \llama-cpp-python# Download MPT-7B Q2 from the link you providedRUN curl -L "https://huggingface.co/maddes8cht/mosaicml-mpt-7b-chat-gguf/resolve/main/mosaicml-mpt-7b-chat-Q2_K.gguf?download=true" -o mpt-7b-q2.gguf# Copy backend onlyCOPY app.py .EXPOSE 7860
Dockerfile+9-5