This commit is contained in:
zjf 2025-05-26 18:08:55 +08:00
parent 24cd449827
commit 63d3bfb669
2 changed files with 11 additions and 9 deletions

View File

@ -16,9 +16,11 @@ from .rpa_comm import LiveStreamProductWatchRequest, LiveStreamResult, ProductSe
rpa_image = (modal.Image.debian_slim(python_version="3.11")
.pip_install_from_pyproject("../pyproject_rpa.toml")
.env({"PLAYWRIGHT_BROWSERS_PATH": "/root/browsers"})
.run_commands("mkdir /root/browsers")
.run_commands("playwright install-deps")
.run_commands("playwright install chromium")
.run_commands([
"mkdir /root/browsers",
"playwright install-deps",
"playwright install chromium",
])
.add_local_python_source('cluster')
)
app = modal.App(name='rpa', image=rpa_image, include_source=False)