Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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=
|
| 30 |
-
CMD curl -
|
| 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"
|