Code_LLM / Dockerfile
AnatoliiG
add build and track wheels with LFS
cbbd03b
raw
history blame
640 Bytes
FROM python:3.10-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
libopenblas0 \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
HF_HOME=/home/user/cache
WORKDIR /app
RUN pip install --no-cache-dir --upgrade pip
COPY --chown=user build /app/build
RUN pip install /app/build/llama_cpp_python-*.whl
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]