Spaces:
Runtime error
Runtime error
sevenopenclaw commited on
Commit ยท
789f590
1
Parent(s): 645618b
fix: install playwright globally to fix build failure
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -42,10 +42,10 @@ RUN apt-get update && \
|
|
| 42 |
libdrm2 libxkbcommon0 libatspi2.0-0 libcups2 libxshmfence1 libgbm1 && \
|
| 43 |
rm -rf /var/lib/apt/lists/*
|
| 44 |
|
| 45 |
-
# Install agent-browser and
|
| 46 |
-
RUN npm install -g agent-browser@latest
|
| 47 |
-
RUN npx playwright install chromium --with-deps
|
| 48 |
ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
|
|
|
|
| 49 |
|
| 50 |
# Install agent-browser skill from ClawHub
|
| 51 |
RUN npx -y clawhub@latest install agent-browser --force || echo "agent-browser skill install attempted"
|
|
|
|
| 42 |
libdrm2 libxkbcommon0 libatspi2.0-0 libcups2 libxshmfence1 libgbm1 && \
|
| 43 |
rm -rf /var/lib/apt/lists/*
|
| 44 |
|
| 45 |
+
# Install agent-browser and Playwright
|
| 46 |
+
RUN npm install -g agent-browser@latest playwright
|
|
|
|
| 47 |
ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
|
| 48 |
+
ENV PLAYWRIGHT_BROWSERS_PATH=/root/.cache/ms-playwright
|
| 49 |
|
| 50 |
# Install agent-browser skill from ClawHub
|
| 51 |
RUN npx -y clawhub@latest install agent-browser --force || echo "agent-browser skill install attempted"
|