mirror of
https://github.com/tanjiro517/cf-bypass-fast.git
synced 2025-12-05 12:58:02 +01:00
30 lines
808 B
Docker
30 lines
808 B
Docker
FROM node:20-slim
|
|
|
|
# Install Chrome and dependencies
|
|
RUN apt update && apt install -y \
|
|
wget gnupg ca-certificates xvfb \
|
|
fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \
|
|
libatk1.0-0 libxss1 libnss3 libxcomposite1 libxdamage1 libxrandr2 libgbm1 \
|
|
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
|
&& apt install -y ./google-chrome-stable_current_amd64.deb \
|
|
&& rm google-chrome-stable_current_amd64.deb
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy and install dependencies
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
|
|
# Copy app code
|
|
COPY . .
|
|
|
|
# Expose port (match your app's port)
|
|
EXPOSE 10000
|
|
|
|
# Start Xvfb and run the bot
|
|
CMD rm -f /tmp/.X99-lock && \
|
|
Xvfb :99 -screen 0 1024x768x24 & \
|
|
export DISPLAY=:99 && \
|
|
npm start
|