Spaces:
Sleeping
Sleeping
File size: 1,050 Bytes
f069081 364dbf5 f069081 | 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 41 42 43 | 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"]
|