-
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Issue Title: Unable to Bypass Cloudflare in Docker Container with Ulixee
Description:
I am currently facing an issue while attempting to bypass Cloudflare when running the Ulixee's Hero within a Docker container. Despite my efforts, I have been unable to successfully bypass Cloudflare, which is preventing me from using the application effectively.
| Screenshot from Docker Container | Script output |
|---|---|
Details:
- Project: Ulixee
- Environment: Docker container
- Issue: Unable to bypass Cloudflare
- Expected Behavior: Successful bypass of Cloudflare to run next automation.
- Actual Behavior: Cloudflare remains active, unsolved.
Additional Information:
- I have tried using both the
ulixee/ulixee-cloudandubuntuDocker images, but the issue persists. - The Dockerfiles I am using are as follows:
Dockerfile (using ulixee-cloud):
FROM ulixee/ulixee-cloud:latest
# Install Chrome dependencies with correct package names for node:20-slim
RUN apt-get update && apt-get install -y \
wget \
gnupg \
ca-certificates \
procps \
libxss1 \
libxtst6 \
libxrandr2 \
libasound2 \
libpangocairo-1.0-0 \
libatk1.0-0 \
libcairo-gobject2 \
libgtk-3-0 \
libgdk-pixbuf-2.0-0 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrender1 \
libxtst6 \
fonts-liberation \
libnss3 \
lsb-release \
xdg-utils \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /usr/src/app
# Copy package files first to cache layer
COPY package*.json ./
# Install dependencies
RUN timeout 300 npm ci —verbose && npm cache clean —force
# RUN apt-get update && apt-get install -y xvfb
# Copy your scraping script
COPY script.js .
# (Optional) Fix chrome-sandbox permission just in case
RUN chmod 4755 /root/.ulixee/chrome/*/chrome-sandbox || true
# Default command
CMD [“node”, “script.js”]
# CMD [“sh”, “-c”, “xvfb-run -a node script.js 2>&1”]Dockerfile (using ubuntu):
# stable ubuntu image
FROM ubuntu:24.04
# Install Node.js and npm plus required browser dependencies
RUN apt-get update && apt-get install -y \
curl \
gnupg \
ca-certificates \
libglib2.0-0 \
libgobject-2.0-0 \
libnss3 \
libnspr4 \
libdbus-1-3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libgio-2.0-0 \
libxcb1 \
libxkbcommon0 \
libatspi2.0-0 \
libx11-6 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libpango-1.0-0 \
libcairo2 \
libasound2t64 \
fonts-liberation \
libappindicator3-1 \
libdrm2 \
libgtk-3-0 \
libxss1 \
libxtst6 \
xdg-utils \
wget \
procps \
htop \
strace \
lsof \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Create app directory
WORKDIR /usr/src/app
# Copy package files first to cache layer
COPY package*.json ./
# Install dependencies
RUN timeout 300 npm ci —verbose && npm cache clean —force
# RUN apt-get update && apt-get install -y xvfb
# Copy your scraping script
COPY script.js .
# (Optional) Fix chrome-sandbox permission just in case
RUN chmod 4755 /root/.ulixee/chrome/*/chrome-sandbox || true
# Default command
CMD [“node”, “script.js”]
# CMD [“sh”, “-c”, “xvfb-run -a node script.js 2>&1”]Request:
Could you please provide any guidance or recommendations on how to bypass Cloudflare in this Docker environment? Any tips or solutions you might have would be greatly appreciated, as I am eager to resolve this issue and continue using your project effectively.
Best regards,
Sairaj J
Metadata
Metadata
Assignees
Labels
No labels