FROM mcr.microsoft.com/playwright:v1.43.1-jammy # Install dependencies needed for bun installer (unzip & curl) RUN apt-get update && apt-get install -y unzip curl && rm -rf /var/lib/apt/lists/* # Install Bun and add it to PATH RUN curl -fsSL https://bun.sh/install | bash && \ echo 'export PATH="/root/.bun/bin:$PATH"' >> ~/.bashrc ENV PATH="/root/.bun/bin:$PATH" WORKDIR /app COPY . . RUN bun install || npm install RUN npx playwright install RUN bun add playwright-extra puppeteer-extra-plugin-stealth #CMD ["bun", "index.ts"]