thread-master/deploy/Dockerfile.node-worker

14 lines
513 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Node playwright workerstyle-8d
# 直接使用 Playwright 官方 image自帶 chromium 與系統依賴),版本對齊 package.json 的 playwright ^1.49.1。
# build context = repo root見 deploy/docker-compose.yml
FROM mcr.microsoft.com/playwright:v1.49.1-jammy
WORKDIR /app
ENV TZ=UTC
COPY backend/worker/package.json backend/worker/package-lock.json ./
RUN npm ci
COPY backend/worker/ ./
# HAIXUN_BACKEND_URL / HAIXUN_WORKER_SECRET 由 compose 注入。
CMD ["npm", "run", "style-8d"]