Compare commits
2 Commits
9fd0b59dfb
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e201219ad0 | |||
| e8730fafb0 |
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