first commit, already have a working version in 12 hours of work
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user