25 lines
585 B
Docker
25 lines
585 B
Docker
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"
|
|
ENV PORT=5565
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN bun install || npm install
|
|
RUN npx playwright install-deps
|
|
RUN npx playwright install
|
|
|
|
RUN bun add playwright-extra puppeteer-extra-plugin-stealth
|
|
|
|
CMD ["bun","run","."]
|
|
|
|
|