File size: 994 Bytes
ffe6a6d 8005bfd 76d0080 6628f79 8005bfd 6628f79 8005bfd 5cd0fc3 647e3bc 76d0080 6628f79 8005bfd 751d2b5 8005bfd bb39212 e76d839 dc2112e bb39212 8005bfd | 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | FROM fedora:44
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
# currently off development
RUN git clone --branch=development --depth 1 https://github.com/NeuroML/neuroklea.git /app
RUN chown -R user:user /app
WORKDIR /app
USER user
RUN uv venv --python=/usr/bin/python3.13 /app/klea-venv
ENV VIRTUAL_ENV=/app/klea-venv
ENV PATH="/app/klea-venv/bin:$PATH"
RUN pwd
RUN ls -lash
RUN --mount=type=cache,target=/home/user/.cache/uv,uid=1000,gid=1000 uv pip install './utils_pkg[chroma,huggingface,nicegui,openai]' './mcp_pkg' './rag_pkg[chroma,huggingface,nicegui,openai]'
RUN ls -lash "$VIRTUAL_ENV/bin/"
RUN uv pip freeze
COPY --chown=user scripts/* /app/scripts/
RUN chmod +x scripts/docker-deploy.sh
COPY --chown=user rag.env /app
COPY --chown=user klea_rag*.json /app
COPY --chown=user vector-stores/ /app/vector-stores/
RUN ls -lash /app/*
ENV RUNNING_IN_DOCKER=1
CMD ["./scripts/docker-deploy.sh"]
|