hack / Dockerfile
liumi-model-spaces's picture
Create Dockerfile
1b81d36 verified
raw
history blame contribute delete
705 Bytes
# Use a lightweight Python base
FROM python:3.11-slim
# Install build essentials for llama-cpp
RUN apt-get update && apt-get install -y \
build-essential \
python3-dev \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir llama-cpp-python gradio
# Download the Phi-4-mini-instruct GGUF (Uncensored/Abliterated version)
# Replace the URL with the specific hub link for the 'Abliterated' variant you choose
RUN wget https://huggingface.co/bartowski/Phi-4-mini-instruct-GGUF/resolve/main/Phi-4-mini-instruct-Q4_K_M.gguf -O model.gguf
COPY . .
# Hugging Face Spaces expect port 7860
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]