Spaces:
Build error
Build error
File size: 633 Bytes
81e3d0d db08b31 81e3d0d faaa7ce 81e3d0d faaa7ce 36cdbe9 faaa7ce a7b648a 638f5c2 81e3d0d 0588d92 919d792 faaa7ce cf7a250 36cdbe9 81e3d0d 36cdbe9 db08b31 919d792 cf7a250 36cdbe9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | FROM python:3.10-bullseye
# Install minimal dependencies for Llama
RUN apt-get update && apt-get install -y \
build-essential cmake libgomp1 wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Upgrade pip + setuptools + wheel
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
# Install llama-cpp-python
RUN pip install --no-cache-dir llama-cpp-python \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
# Install Flask + Hugging Face tools
RUN pip install --no-cache-dir flask requests huggingface-hub
# Copy app
COPY . .
EXPOSE 7860
ENV PYTHONUNBUFFERED=1
CMD ["python", "app.py"] |