Trisha Tomy commited on
Commit
cacfd35
·
1 Parent(s): 9f428ce

Refine proxy-lite installation in Dockerfile using editable mode and updated pip tools

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -2
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -45,10 +45,21 @@ RUN apt-get update && apt-get install -y \
45
  # Clean up apt caches to reduce image size
46
  && rm -rf /var/lib/apt/lists/*
47
 
48
- # Copy Python dependencies and install them
49
- # This layer is cached efficiently if requirements.txt doesn't change
50
  COPY requirements.txt .
 
 
 
 
 
 
 
 
 
 
 
51
  RUN pip install --no-cache-dir -r requirements.txt
 
52
 
53
  # Copy your application code into the container
54
  COPY . .
 
45
  # Clean up apt caches to reduce image size
46
  && rm -rf /var/lib/apt/lists/*
47
 
48
+ # Copy Python dependencies (now only common ones, proxy-lite will be handled separately)
 
49
  COPY requirements.txt .
50
+
51
+ # --- NEW/MODIFIED INSTALLATION BLOCK ---
52
+ # Upgrade pip, setuptools, and wheel for a robust build environment
53
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
54
+
55
+ # Install proxy-lite in editable mode directly from its Git repository
56
+ # This explicitly tells pip to clone and "install" it by linking directly,
57
+ # which can sometimes bypass wheel build issues for complex projects.
58
+ RUN pip install --no-cache-dir -e git+https://github.com/convergence-ai/proxy-lite.git#egg=proxy-lite
59
+
60
+ # Install the rest of the dependencies from requirements.txt
61
  RUN pip install --no-cache-dir -r requirements.txt
62
+ # --- END NEW/MODIFIED INSTALLATION BLOCK ---
63
 
64
  # Copy your application code into the container
65
  COPY . .
requirements.txt CHANGED
@@ -4,4 +4,3 @@ playwright
4
  playwright-stealth==1.0.6
5
  gunicorn
6
  gevent
7
- git+https://github.com/convergence-ai/proxy-lite.git#egg=proxy-lite
 
4
  playwright-stealth==1.0.6
5
  gunicorn
6
  gevent