Pharma_Vault / Dockerfile
st192011's picture
Update Dockerfile
70a01e8 verified
raw
history blame contribute delete
671 Bytes
FROM python:3.10-slim
# 1. Setup User 1000 (Required for HF Spaces)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
FROM python:3.10-slim
FROM python:3.10-slim
# 1. System dependencies
RUN apt-get update && apt-get install -y \
git \
build-essential \
cmake \
&& rm -rf /var/lib/apt/lists/*
# 2. Install llama-cpp-python with CPU-only flags
ENV CMAKE_ARGS="-DLLAMA_NATIVE=OFF"
ENV FORCE_CMAKE=1
RUN pip install --no-cache-dir \
llama-cpp-python==0.2.90
# 3. App setup
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "app.py"]