File size: 407 Bytes
aed3858
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.11-slim

RUN apt-get update && \
    apt-get install -y --no-install-recommends build-essential cmake && \
    rm -rf /var/lib/apt/lists/*

ENV CMAKE_BUILD_PARALLEL_LEVEL=4
ENV CMAKE_ARGS="-DLLAMA_NATIVE=OFF"

RUN pip install --no-cache-dir "llama-cpp-python==0.3.16" && \
    pip install --no-cache-dir gradio huggingface_hub

WORKDIR /app
COPY app.py .

EXPOSE 7860
CMD ["python", "app.py"]