OpenWormAI / Dockerfile
SabarishG's picture
Update Dockerfile
89745f9 verified
Raw
History Blame Contribute Delete
918 Bytes
FROM fedora:43
EXPOSE 7860
RUN dnf install python3.13 uv git-core curl -y
RUN useradd -m -u 1000 user
RUN mkdir -p /app && chown -R user:user /app
RUN git clone --depth 1 https://github.com/SabarishG18/openworm.ai.git /app
RUN chown -R user:user /app
WORKDIR /app
USER user
RUN uv venv /app/ow-ai-venv
ENV VIRTUAL_ENV=/app/ow-ai-venv
ENV PATH="/app/ow-ai-venv/bin:$PATH"
RUN pwd
RUN ls -lash
RUN uv pip install fastapi[standard] uvicorn
RUN uv pip install -r requirements.txt
# in huggingface folder
COPY --chown=user scripts/* /app/scripts/
RUN chmod +x scripts/docker-deploy.sh
HEALTHCHECK --interval=30s --timeout=30s --start-period=120s --retries=5 \
CMD curl -sf http://localhost:7860/_stcore/health || exit 1
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
CMD ["./scripts/docker-deploy.sh"]