KoalaFlow commited on
Commit
6f5472d
Β·
verified Β·
1 Parent(s): ec1f259

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -35,18 +35,20 @@ WORKDIR /data
35
  RUN mkdir -p /data/.flowise/logs /data/.flowise/storage /data/uploads /data/chroma \
36
  && chmod -R 777 /data \
37
  && chown -R 1000:1000 /data
38
- ENV PATH=$PATH:/home/node/.local/bin
39
  USER 1000:1000
40
 
41
  # ---------- Expose ports ---------------------------------------------------
42
  EXPOSE 7860 8000
43
 
44
  # ---------- Start: Chroma ➜ wait ➜ Flowise ---------------------------------
45
- CMD sh -c '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
  npx flowise start'
 
35
  RUN mkdir -p /data/.flowise/logs /data/.flowise/storage /data/uploads /data/chroma \
36
  && chmod -R 777 /data \
37
  && chown -R 1000:1000 /data
38
+ ENV PATH=$PATH:/home/node/.local/bin:/usr/local/bin:/root/.local/bin
39
  USER 1000:1000
40
 
41
  # ---------- Expose ports ---------------------------------------------------
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
+ --cors-allow-origins "[\"*\"]" \
50
  & \
51
  while ! curl -s http://localhost:8000/api/v1/heartbeat >/dev/null; do \
52
+ echo "Waiting for Chroma API..."; sleep 1; done; \
53
+ ps aux; \
54
  npx flowise start'