mirror of
https://github.com/tanjiro517/cf-bypass-fast.git
synced 2025-12-06 14:28:01 +01:00
Update Dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,7 +1,6 @@
|
|||||||
# Base image with Node.js and Chrome dependencies
|
|
||||||
FROM node:20-slim
|
FROM node:20-slim
|
||||||
|
|
||||||
# Install Chrome and Xvfb
|
# Install Chrome and dependencies
|
||||||
RUN apt update && apt install -y \
|
RUN apt update && apt install -y \
|
||||||
wget gnupg ca-certificates xvfb \
|
wget gnupg ca-certificates xvfb \
|
||||||
fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \
|
fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \
|
||||||
@@ -13,17 +12,18 @@ RUN apt update && apt install -y \
|
|||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files and install dependencies
|
# Copy and install dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the app
|
# Copy app code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Expose port (adjust if needed)
|
# Expose port (match your app's port)
|
||||||
EXPOSE 3000
|
EXPOSE 10000
|
||||||
|
|
||||||
# Start Xvfb and run the app
|
# Start Xvfb and run the bot
|
||||||
CMD Xvfb :99 -screen 0 1024x768x24 & \
|
CMD rm -f /tmp/.X99-lock && \
|
||||||
|
Xvfb :99 -screen 0 1024x768x24 & \
|
||||||
export DISPLAY=:99 && \
|
export DISPLAY=:99 && \
|
||||||
npm start
|
npm start
|
||||||
|
|||||||
Reference in New Issue
Block a user