gradio / Dockerfile
GamerC0der's picture
Update Dockerfile
18738f2 verified
raw
history blame contribute delete
574 Bytes
FROM python:3.13-slim
WORKDIR /app
# Install compilation prerequisites
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
git \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip and install the latest llama-cpp-python directly from source with no cache
RUN pip install --no-cache-dir --upgrade pip && \
CMAKE_ARGS="-DLLAMA_GGML_BACKEND_DL=OFF" pip install --no-cache-dir --no-binary :all: llama-cpp-python
# Install other requirements
RUN pip install --no-cache-dir flask huggingface_hub
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]