dina1 commited on
Commit
bf81d86
·
verified ·
1 Parent(s): 666a0c2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -6,6 +6,9 @@ FROM python:3.10-slim
6
 
7
  WORKDIR /app
8
 
 
 
 
9
  # Install system dependencies for Playwright + fonts
10
  RUN apt-get update && apt-get install -y \
11
  wget gnupg ca-certificates curl unzip \
@@ -17,9 +20,11 @@ RUN apt-get update && apt-get install -y \
17
 
18
  # Copy dependencies and install them
19
  COPY requirements.txt .
 
 
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Install Playwright Chromium
23
  RUN pip install --no-cache-dir playwright
24
  RUN playwright install --with-deps chromium
25
 
 
6
 
7
  WORKDIR /app
8
 
9
+ # Upgrade pip first (avoids package resolution issues)
10
+ RUN pip install --upgrade pip
11
+
12
  # Install system dependencies for Playwright + fonts
13
  RUN apt-get update && apt-get install -y \
14
  wget gnupg ca-certificates curl unzip \
 
20
 
21
  # Copy dependencies and install them
22
  COPY requirements.txt .
23
+ # Pin LangChain to 1.0.5 (latest available on your build environment)
24
+ RUN sed -i 's/langchain>=1.2.0/langchain==1.0.5/' requirements.txt
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
+ # Install Playwright and Chromium
28
  RUN pip install --no-cache-dir playwright
29
  RUN playwright install --with-deps chromium
30