Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
462e339
1
Parent(s):
d70e298
Configure Docker to install local proxy-lite package
Browse files- Dockerfile +5 -5
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -17,19 +17,19 @@ RUN apt-get update && apt-get install -y \
|
|
17 |
COPY requirements.txt .
|
18 |
|
19 |
# --- START: Core Python and proxy-lite setup ---
|
20 |
-
|
|
|
21 |
# Upgrade pip, setuptools, and wheel for a robust Python build environment.
|
22 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
23 |
|
24 |
# Install proxy-lite in "editable" mode directly from its GitHub repository.
|
25 |
# The Playwright base image already has Playwright installed, so this just handles proxy-lite
|
26 |
-
RUN pip install --no-cache-dir --no-input --force-reinstall -e git+https://github.com/convergence-ai/proxy-lite.git#egg=proxy-lite
|
27 |
-
|
28 |
# Install the rest of the Python dependencies from requirements.txt
|
29 |
RUN pip install --no-cache-dir -r requirements.txt
|
30 |
|
31 |
-
|
32 |
-
COPY . .
|
33 |
|
34 |
# --- START: Directory permission workaround ---
|
35 |
# Create the directory proxy-lite's recorder insists on writing to
|
|
|
17 |
COPY requirements.txt .
|
18 |
|
19 |
# --- START: Core Python and proxy-lite setup ---
|
20 |
+
# Copy your Flask application code (app.py) and other project files.
|
21 |
+
COPY . .
|
22 |
# Upgrade pip, setuptools, and wheel for a robust Python build environment.
|
23 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
24 |
|
25 |
# Install proxy-lite in "editable" mode directly from its GitHub repository.
|
26 |
# The Playwright base image already has Playwright installed, so this just handles proxy-lite
|
27 |
+
# RUN pip install --no-cache-dir --no-input --force-reinstall -e git+https://github.com/convergence-ai/proxy-lite.git#egg=proxy-lite
|
28 |
+
RUN pip install --no-cache-dir --no-input -e .
|
29 |
# Install the rest of the Python dependencies from requirements.txt
|
30 |
RUN pip install --no-cache-dir -r requirements.txt
|
31 |
|
32 |
+
|
|
|
33 |
|
34 |
# --- START: Directory permission workaround ---
|
35 |
# Create the directory proxy-lite's recorder insists on writing to
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
Flask
|
2 |
-
|
3 |
playwright
|
4 |
playwright-stealth==1.0.6
|
5 |
gunicorn
|
|
|
1 |
Flask
|
2 |
+
-e .
|
3 |
playwright
|
4 |
playwright-stealth==1.0.6
|
5 |
gunicorn
|