Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
2495948
1
Parent(s):
93b2ed3
updated dockerfile debug stms+app
Browse files- Dockerfile +8 -6
- app.py +1 -0
Dockerfile
CHANGED
@@ -81,12 +81,14 @@ RUN xvfb-run python -m playwright install chromium
|
|
81 |
ENV PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright/
|
82 |
|
83 |
# --- Debugging: Check Playwright version and browser installation (moved AFTER install) ---
|
84 |
-
RUN echo "--- Checking Playwright Version ---"
|
85 |
-
RUN python -m playwright --version
|
86 |
-
RUN echo "--- Listing Playwright Browser Cache ---"
|
87 |
-
|
88 |
-
RUN
|
89 |
-
|
|
|
|
|
90 |
|
91 |
# Expose the port your Flask app will listen on. Hugging Face Spaces requires 7860.
|
92 |
EXPOSE 7860
|
|
|
81 |
ENV PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright/
|
82 |
|
83 |
# --- Debugging: Check Playwright version and browser installation (moved AFTER install) ---
|
84 |
+
RUN echo "--- Checking Playwright Version ---"
|
85 |
+
RUN python -m playwright --version
|
86 |
+
RUN echo "--- Listing Playwright Browser Cache (Recursive) ---"
|
87 |
+
# This will list contents of subdirectories as well
|
88 |
+
RUN ls -alR /root/.cache/ms-playwright/
|
89 |
+
RUN echo "-----------------------------------"
|
90 |
+
# --- End Debugging ---
|
91 |
+
|
92 |
|
93 |
# Expose the port your Flask app will listen on. Hugging Face Spaces requires 7860.
|
94 |
EXPOSE 7860
|
app.py
CHANGED
@@ -28,6 +28,7 @@ async def initialize_runner():
|
|
28 |
"name": "webbrowser",
|
29 |
"homepage": "https://www.google.com",
|
30 |
"headless": True,
|
|
|
31 |
},
|
32 |
"solver": {
|
33 |
"name": "simple",
|
|
|
28 |
"name": "webbrowser",
|
29 |
"homepage": "https://www.google.com",
|
30 |
"headless": True,
|
31 |
+
"launch_args": ["--no-sandbox"]
|
32 |
},
|
33 |
"solver": {
|
34 |
"name": "simple",
|