Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -32,7 +32,7 @@ COPY flowise.json /data/flowise.json
|
|
| 32 |
EXPOSE 7860 8000
|
| 33 |
|
| 34 |
# ---- Startup: Chroma (uvicorn) ➜ wait ➜ Flowise -------------------------
|
| 35 |
-
CMD sh -c
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
| 32 |
EXPOSE 7860 8000
|
| 33 |
|
| 34 |
# ---- Startup: Chroma (uvicorn) ➜ wait ➜ Flowise -------------------------
|
| 35 |
+
CMD sh -c 'python3 -m chromadb.cli --path /data/chroma --host 0.0.0.0 --port 8000 --is-persistent --allow-cors "[\"*\"]" & \
|
| 36 |
+
while ! curl -s http://localhost:8000/api/v1/heartbeat >/dev/null; do \
|
| 37 |
+
echo "Waiting for Chroma API…"; sleep 1; done && \
|
| 38 |
+
npx flowise start'
|