Trisha Tomy commited on
Commit
d62a734
·
1 Parent(s): 48a68a4

updated dockerfile official image try

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -41,19 +41,15 @@ RUN mkdir -p /app/src/proxy-lite/local_trajectories \
41
  # Set environment variables required for Playwright at runtime
42
  ENV DISPLAY=:99
43
  ENV XDG_RUNTIME_DIR=/tmp
44
- # This environment variable is set implicitly by the Playwright base image,
45
- # but it's good practice to ensure it's here if ever changing base images.
46
- ENV PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright/
47
- # Ensure Playwright doesn't try to re-download browsers at runtime
48
- ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
49
 
50
  # --- Debugging: Check Playwright version and browser installation (moved AFTER install in the original setup) ---
51
- # With the official image, these are less critical as it's pre-configured,
52
- # but keeping them for verification during the build.
53
  RUN echo "--- Checking Playwright Version (from base image) ---"
54
  RUN python -m playwright --version
55
  RUN echo "--- Listing Playwright Browser Cache (Recursive, from base image) ---"
56
- RUN ls -alR /root/.cache/ms-playwright/
57
  RUN echo "-----------------------------------"
58
  # --- End Debugging ---
59
 
 
41
  # Set environment variables required for Playwright at runtime
42
  ENV DISPLAY=:99
43
  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 (moved AFTER install in the original setup) ---
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) ---"
52
+ RUN ls -alR /ms-playwright/
53
  RUN echo "-----------------------------------"
54
  # --- End Debugging ---
55