Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
62974ce
1
Parent(s):
7434da8
xvfb added
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -44,8 +44,7 @@ ENV XDG_RUNTIME_DIR=/tmp
|
|
44 |
# Removed PLAYWRIGHT_BROWSERS_PATH and PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
|
45 |
# as the official Playwright image manages these internally, defaulting to /ms-playwright.
|
46 |
|
47 |
-
# --- Debugging: Check Playwright version and browser installation
|
48 |
-
# Now checking the default Playwright browser installation path /ms-playwright
|
49 |
RUN echo "--- Checking Playwright Version (from base image) ---"
|
50 |
RUN python -m playwright --version
|
51 |
RUN echo "--- Listing Playwright Browser Cache (Recursive, from base image) ---"
|
@@ -57,4 +56,5 @@ RUN echo "-----------------------------------"
|
|
57 |
EXPOSE 7860
|
58 |
|
59 |
# Define the command to run your Flask application using Gunicorn for production.
|
60 |
-
|
|
|
|
44 |
# Removed PLAYWRIGHT_BROWSERS_PATH and PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
|
45 |
# as the official Playwright image manages these internally, defaulting to /ms-playwright.
|
46 |
|
47 |
+
# --- Debugging: Check Playwright version and browser installation ---
|
|
|
48 |
RUN echo "--- Checking Playwright Version (from base image) ---"
|
49 |
RUN python -m playwright --version
|
50 |
RUN echo "--- Listing Playwright Browser Cache (Recursive, from base image) ---"
|
|
|
56 |
EXPOSE 7860
|
57 |
|
58 |
# Define the command to run your Flask application using Gunicorn for production.
|
59 |
+
# CHANGED: Wrap the gunicorn command with xvfb-run to provide a virtual display
|
60 |
+
CMD ["xvfb-run", "--auto-display", "gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--worker-class", "gevent", "app:app", "--timeout", "300"]
|