File size: 918 Bytes
91134dd
d105512
91134dd
 
89745f9
91134dd
 
 
d105512
fc1b4d8
91134dd
 
 
 
d105512
91134dd
 
 
d105512
91134dd
 
5cd6e9f
91134dd
d105512
91134dd
 
 
d105512
a4c07d9
 
b259e12
91134dd
 
 
d105512
91134dd
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
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"]