Peter Mutwiri commited on
Commit
4e84527
·
1 Parent(s): a0ff994

added upstash redis in requirements

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -5
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -14,9 +14,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
14
  unzip \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # ---- 2½. DuckDB CLI (optional but handy for debugging) --------------------
18
- RUN wget -q https://github.com/duckdb/duckdb/releases/download/v0.10.2/duckdb_cli-linux-amd64.zip && \
19
- unzip duckdb_cli-linux-amd64.zip -d /usr/local/bin && rm *.zip
20
 
21
  # ---- 3. upgrade pip & enable pre-built wheels ------------------------------
22
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
@@ -33,8 +30,7 @@ WORKDIR /app
33
  # ---- 5½. scheduler loop ----------------------------------------------------
34
  COPY scheduler_loop.py /app/scheduler_loop.py
35
 
36
- # ---- 6. runtime env vars ---------------------------------------------------
37
- ENV API_KEYS=dev-analytics-key-123
38
 
39
  # ---- 7. start both services -----------------------------------------------
40
  CMD sh -c "python -m uvicorn app.main:app --host 0.0.0.0 --port 7860 & python /app/scheduler_loop.py"
 
14
  unzip \
15
  && rm -rf /var/lib/apt/lists/*
16
 
 
 
 
17
 
18
  # ---- 3. upgrade pip & enable pre-built wheels ------------------------------
19
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
 
30
  # ---- 5½. scheduler loop ----------------------------------------------------
31
  COPY scheduler_loop.py /app/scheduler_loop.py
32
 
33
+
 
34
 
35
  # ---- 7. start both services -----------------------------------------------
36
  CMD sh -c "python -m uvicorn app.main:app --host 0.0.0.0 --port 7860 & python /app/scheduler_loop.py"
requirements.txt CHANGED
@@ -20,7 +20,7 @@ accelerate==0.28.0
20
  sentence-transformers==2.7.0
21
 
22
  # Redis Bridge (Upstash)
23
- redis==5.0.0
24
  qstash>=2.0.0,<3.0.0 # <-- ADDED VERSION PIN
25
 
26
  # HTTP Clients
 
20
  sentence-transformers==2.7.0
21
 
22
  # Redis Bridge (Upstash)
23
+ upstash-redis>=0.15.0
24
  qstash>=2.0.0,<3.0.0 # <-- ADDED VERSION PIN
25
 
26
  # HTTP Clients