| 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 |
|
|
| |
| 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"] |
|
|