From e8730fafb00b3efb8b970b70d7435e4386e397fe Mon Sep 17 00:00:00 2001 From: Mars Ultor Date: Wed, 17 Dec 2025 15:34:04 -0600 Subject: [PATCH] new update --- .dockerignore | 2 ++ Dockerfile | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a56a7ef --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e4a5b64 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +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", "index.ts"] + +