Spaces:
Sleeping
Sleeping
| 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" | |
| ENV KLEA_RAG_ENV_FILE="rag-hf.env" | |
| 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]' './rag_pkg[chroma,huggingface]' | |
| 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-hf.env /app | |
| COPY --chown=user klea_rag_openworm.json /app | |
| COPY --chown=user store/ /app/store/ | |
| RUN ls -lash /app/* | |
| ENV RUNNING_IN_DOCKER=1 | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| CMD ["./scripts/docker-deploy.sh"] | |