KoalaFlow commited on
Commit
609d9a4
Β·
verified Β·
1 Parent(s): 639f7d0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -9
Dockerfile CHANGED
@@ -42,12 +42,24 @@ USER 1000:1000
42
  EXPOSE 7860 8000
43
 
44
  # ---------- Start: Chroma ➜ wait ➜ Flowise ---------------------------------
45
- CMD sh -c 'set -x; chroma run \
46
- --path /data/chroma \
47
- --host 0.0.0.0 \
48
- --port 8000 \
49
- & \
50
- while ! curl -s http://localhost:8000/api/v1/heartbeat >/dev/null; do \
51
- echo "Waiting for Chroma API..."; sleep 1; done; \
52
- ps aux; \
53
- npx flowise start'
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  EXPOSE 7860 8000
43
 
44
  # ---------- Start: Chroma ➜ wait ➜ Flowise ---------------------------------
45
+ CMD sh -c 'set -x; \
46
+ chroma run \
47
+ --path /data/chroma \
48
+ --host 0.0.0.0 \
49
+ --port 8000 \
50
+ & \
51
+ echo "--- Waiting for Chroma API ---"; \
52
+ while ! curl -v http://localhost:8000/api/v1/heartbeat; do \
53
+ echo "[DEBUG] Chroma not ready yet. Retrying..."; \
54
+ netstat -tulnp || ss -tulnp || true; \
55
+ sleep 1; \
56
+ done; \
57
+ echo "--- Chroma API is up ---"; \
58
+ echo "[DEBUG] Testing Chroma collections endpoint:"; \
59
+ curl -v http://localhost:8000/api/v1/collections || true; \
60
+ echo "[DEBUG] Environment variables:"; \
61
+ printenv | grep CHROMA || true; \
62
+ echo "[DEBUG] Process list:"; \
63
+ ps aux; \
64
+ echo "[DEBUG] Flowise will start now."; \
65
+ npx flowise start'