fix2
This commit is contained in:
parent
eaf029a16f
commit
f2ca28c1d5
|
|
@ -6,7 +6,7 @@
|
|||
"style-8d": "tsx style-8d-worker.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"playwright": "^1.49.1"
|
||||
"playwright": "^1.61.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tsx": "^4.19.2",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
# Node playwright worker(style-8d)。
|
||||
# 直接使用 Playwright 官方 image(自帶 chromium 與系統依賴),版本對齊 package.json 的 playwright ^1.49.1。
|
||||
# 直接使用 Playwright 官方 image(自帶 chromium 與系統依賴)。
|
||||
# 重要:image tag 必須對齊 backend/worker/package-lock.json 解析到的 playwright 版本,
|
||||
# 否則 npm ci 裝的 playwright 與 image 內瀏覽器版本不符,會找不到瀏覽器執行檔。
|
||||
# build context = repo root(見 deploy/docker-compose.yml)。
|
||||
|
||||
FROM mcr.microsoft.com/playwright:v1.49.1-jammy
|
||||
FROM mcr.microsoft.com/playwright:v1.61.1-jammy
|
||||
WORKDIR /app
|
||||
ENV TZ=UTC
|
||||
COPY backend/worker/package.json backend/worker/package-lock.json ./
|
||||
|
|
|
|||
Loading…
Reference in New Issue