fedora-docs-rag / Dockerfile
sanjayankur31's picture
fix(docker): use a separate scripts folder
c2879a3 verified
Raw
History Blame Contribute Delete
1.11 kB
FROM fedora:43
EXPOSE 7860
RUN dnf install python3.13 uv git-core -y
RUN useradd -m -u 1000 user
RUN mkdir -p /app && chown -R user:user /app
RUN git clone --depth 1 https://github.com/sanjayankur31/fedora-docs-rag.git /app
RUN chown -R user:user /app
WORKDIR /app
USER user
# now in /app
RUN pwd
RUN ls -lash
RUN git clone --depth 1 https://github.com/NeuroML/neuroml-ai.git
RUN ls -lash ./neuroml-ai/
ADD --unpack https://ankursinha.fedorapeople.org/fedora-rag/20260218-vector-stores.tar.xz /app/
RUN ls -lash ./vector-stores/
RUN uv venv /app/fedora-rag-venv
ENV VIRTUAL_ENV=/app/fedora-rag-venv
ENV PATH="/app/fedora-rag-venv/bin:$PATH"
RUN uv pip install ./neuroml-ai/utils_pkg ./neuroml-ai/rag_pkg
RUN uv pip install -r ./requirements.txt
# copy to container image
COPY --chown=user scripts /app/scripts
RUN ls -lash
RUN ls -lash ./scripts/
RUN chmod +x ./scripts/docker-deploy.sh
ENV GEN_RAG_CHAT_MODEL="huggingface:Qwen/Qwen3-4B-Instruct-2507:cheapest"
ENV GEN_RAG_VS_CONFIG="/app/scripts/vector-stores.json"
ENV RUNNING_IN_DOCKER=1
# in container, in /app
CMD ["./scripts/docker-deploy.sh"]