FROM node:20-bookworm-slim # Install Playwright system dependencies + Chromium RUN apt-get update && \ npx playwright install --with-deps chromium && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package.json package-lock.json ./ COPY prisma ./prisma/ RUN npm ci RUN npx prisma generate COPY src ./src/ COPY scripts ./scripts/ COPY tsconfig.json ./ # Default: run the masstimes scraper CMD ["npx", "tsx", "scripts/scrape-masstimes.ts"]