FROM node:20-slim RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package.json package-lock.json* ./ RUN npm ci --production 2>/dev/null || npm install --production # Install Playwright browsers + OS dependencies (chromium only to save space) RUN npx playwright install --with-deps chromium COPY src/ ./src/ # Create cache directory RUN mkdir -p /app/cache EXPOSE 3001 3002 CMD ["node", "src/index.js"]