Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
f4016b3
1
Parent(s):
b25c42e
Fixed editable package path in requirements.txt and Dockerfile
Browse files- Dockerfile +4 -7
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -16,10 +16,11 @@ COPY requirements.txt .
|
|
16 |
COPY app.py .
|
17 |
|
18 |
# Copy the entire 'proxy-lite-demo-v2' directory into /app/proxy-lite-demo-v2
|
19 |
-
# This
|
20 |
COPY proxy-lite-demo-v2 /app/proxy-lite-demo-v2/
|
21 |
|
22 |
# Copy the 'proxy-lite-work' directory if it's needed by the app
|
|
|
23 |
COPY proxy-lite-work /app/proxy-lite-work/
|
24 |
|
25 |
# --- IMPORTANT: Add proxy-lite-demo-v2/src to PYTHONPATH ---
|
@@ -37,12 +38,8 @@ RUN mkdir -p /app/local_trajectories \
|
|
37 |
# Upgrade pip, setuptools, and wheel for a robust Python build environment.
|
38 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
39 |
|
40 |
-
# Install
|
41 |
-
#
|
42 |
-
# we explicitly tell pip to install from that directory.
|
43 |
-
RUN pip install --no-cache-dir --no-input -e /app/proxy-lite-demo-v2
|
44 |
-
|
45 |
-
# Install the rest of the Python dependencies from requirements.txt
|
46 |
RUN pip install --no-cache-dir -r requirements.txt
|
47 |
|
48 |
# Set environment variables required for Playwright at runtime
|
|
|
16 |
COPY app.py .
|
17 |
|
18 |
# Copy the entire 'proxy-lite-demo-v2' directory into /app/proxy-lite-demo-v2
|
19 |
+
# This ensures src, pyproject.toml, etc., are in their original nested structure within the container.
|
20 |
COPY proxy-lite-demo-v2 /app/proxy-lite-demo-v2/
|
21 |
|
22 |
# Copy the 'proxy-lite-work' directory if it's needed by the app
|
23 |
+
# (Based on your tree, this is at the root of your repo)
|
24 |
COPY proxy-lite-work /app/proxy-lite-work/
|
25 |
|
26 |
# --- IMPORTANT: Add proxy-lite-demo-v2/src to PYTHONPATH ---
|
|
|
38 |
# Upgrade pip, setuptools, and wheel for a robust Python build environment.
|
39 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
40 |
|
41 |
+
# Install all Python dependencies from requirements.txt, which now includes the editable install
|
42 |
+
# of proxy-lite from its correct nested path.
|
|
|
|
|
|
|
|
|
43 |
RUN pip install --no-cache-dir -r requirements.txt
|
44 |
|
45 |
# Set environment variables required for Playwright at runtime
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
Flask[async]
|
2 |
-
-e
|
3 |
playwright
|
4 |
playwright-stealth==1.0.6
|
5 |
gunicorn
|
|
|
1 |
Flask[async]
|
2 |
+
-e ./proxy-lite-demo-v2
|
3 |
playwright
|
4 |
playwright-stealth==1.0.6
|
5 |
gunicorn
|