SabarishG commited on
Commit
a4c07d9
·
verified ·
1 Parent(s): b259e12

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM fedora:43
2
 
3
  EXPOSE 7860
4
 
5
- RUN dnf install python3.13 uv git-core -y
6
 
7
  RUN useradd -m -u 1000 user
8
  RUN mkdir -p /app && chown -R user:user /app
@@ -26,8 +26,8 @@ RUN uv pip install -r requirements.txt
26
  COPY --chown=user scripts/* /app/scripts/
27
  RUN chmod +x scripts/docker-deploy.sh
28
 
29
- HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
30
- CMD curl -f http://localhost:7860/ || exit 1
31
 
32
  ENV GEN_RAG_CHAT_MODEL="huggingface:Qwen/Qwen3-4B-Instruct-2507:cheapest"
33
  ENV GEN_RAG_VS_CONFIG="/app/scripts/vector-stores.json"
 
2
 
3
  EXPOSE 7860
4
 
5
+ RUN dnf install python3.13 uv git-core curl -y
6
 
7
  RUN useradd -m -u 1000 user
8
  RUN mkdir -p /app && chown -R user:user /app
 
26
  COPY --chown=user scripts/* /app/scripts/
27
  RUN chmod +x scripts/docker-deploy.sh
28
 
29
+ HEALTHCHECK --interval=30s --timeout=30s --start-period=120s --retries=5 \
30
+ CMD curl -sf http://localhost:7860/_stcore/health || exit 1
31
 
32
  ENV GEN_RAG_CHAT_MODEL="huggingface:Qwen/Qwen3-4B-Instruct-2507:cheapest"
33
  ENV GEN_RAG_VS_CONFIG="/app/scripts/vector-stores.json"