mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 06:46:39 +01:00
Run build_rag.sh from the bind-mounted context dir, rather than copying the script and requirements files into the image. Signed-off-by: Mike Bonnet <mikeb@redhat.com>
23 lines
697 B
Docker
23 lines
697 B
Docker
ARG PARENT=quay.io/fedora/fedora:43
|
|
FROM $PARENT
|
|
|
|
ARG TORCH_BACKEND=cpu
|
|
|
|
ENV VIRTUAL_ENV="/opt/venv" \
|
|
PATH="/opt/venv/bin:$PATH" \
|
|
UV_NO_CACHE=1 \
|
|
UV_NO_MANAGED_PYTHON=1 \
|
|
UV_TORCH_BACKEND=$TORCH_BACKEND \
|
|
HF_HOME=/var/cache/huggingface \
|
|
FASTEMBED_CACHE_PATH=/var/cache/fastembed
|
|
|
|
COPY container-images/scripts/doc2rag \
|
|
container-images/scripts/rag_framework \
|
|
/usr/bin/
|
|
# Keep the tag below in sync with the tag used for ggml in requirements-rag.in
|
|
ADD --chmod=755 https://github.com/ggml-org/llama.cpp/raw/refs/tags/b7872/convert_hf_to_gguf.py \
|
|
/usr/bin/
|
|
|
|
RUN --mount=type=bind,target=/src\
|
|
/src/container-images/scripts/build_rag.sh $TORCH_BACKEND
|