Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
93b2ed3
1
Parent(s):
6da58ba
updated dockerfile debug stmts
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
@@ -58,14 +58,6 @@ RUN pip install --no-cache-dir --no-input --force-reinstall -e git+https://githu
|
|
58 |
# Install the rest of the Python dependencies from requirements.txt
|
59 |
RUN pip install --no-cache-dir -r requirements.txt
|
60 |
|
61 |
-
# --- Debugging: Check Playwright version and browser installation ---
|
62 |
-
RUN echo "--- Checking Playwright Version ---"
|
63 |
-
RUN python -m playwright --version
|
64 |
-
RUN echo "--- Listing Playwright Browser Cache ---"
|
65 |
-
RUN ls -al /root/.cache/ms-playwright/
|
66 |
-
RUN echo "-----------------------------------"
|
67 |
-
# --- End Debugging ---
|
68 |
-
|
69 |
# Copy your Flask application code (app.py) and other project files.
|
70 |
COPY . .
|
71 |
|
@@ -88,6 +80,14 @@ RUN xvfb-run python -m playwright install chromium
|
|
88 |
# Set environment variables for Playwright (can be redundant but good to ensure persistence)
|
89 |
ENV PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright/
|
90 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
# Expose the port your Flask app will listen on. Hugging Face Spaces requires 7860.
|
92 |
EXPOSE 7860
|
93 |
|
|
|
58 |
# Install the rest of the Python dependencies from requirements.txt
|
59 |
RUN pip install --no-cache-dir -r requirements.txt
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
# Copy your Flask application code (app.py) and other project files.
|
62 |
COPY . .
|
63 |
|
|
|
80 |
# Set environment variables for Playwright (can be redundant but good to ensure persistence)
|
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 |
+
RUN ls -al /root/.cache/ms-playwright/
|
88 |
+
RUN echo "-----------------------------------"
|
89 |
+
# --- End Debugging ---
|
90 |
+
|
91 |
# Expose the port your Flask app will listen on. Hugging Face Spaces requires 7860.
|
92 |
EXPOSE 7860
|
93 |
|