new update
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
|
||||||
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -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"]
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user