# Base image ships Chromium matching Playwright 1.60.0 (keep both in sync). FROM mcr.microsoft.com/playwright:v1.60.0-jammy WORKDIR /app COPY package.json ./ RUN npm install --omit=dev COPY . . # HF Spaces runs the container as UID 1000 and routes traffic to app_port (7860); # HOME must be writable for Chromium. (On Render, PORT is injected and overrides this.) ENV HOME=/tmp ENV PORT=7860 EXPOSE 7860 CMD ["npm", "start"]