From b720b215b5614d2dfa528d319a1e8df4e00486ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abhinai=20Reddy=E2=9B=94=EF=B8=8F?= <159715958+abhinai2244@users.noreply.github.com> Date: Tue, 7 Oct 2025 16:47:08 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index b349b0c..22a1b4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ -# Base image with Node.js and Chrome dependencies FROM node:20-slim -# Install Chrome and Xvfb +# Install Chrome and dependencies RUN apt update && apt install -y \ wget gnupg ca-certificates xvfb \ fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 \ @@ -13,17 +12,18 @@ RUN apt update && apt install -y \ # Set working directory WORKDIR /app -# Copy package files and install dependencies +# Copy and install dependencies COPY package*.json ./ RUN npm install -# Copy the rest of the app +# Copy app code COPY . . -# Expose port (adjust if needed) -EXPOSE 3000 +# Expose port (match your app's port) +EXPOSE 10000 -# Start Xvfb and run the app -CMD Xvfb :99 -screen 0 1024x768x24 & \ +# Start Xvfb and run the bot +CMD rm -f /tmp/.X99-lock && \ + Xvfb :99 -screen 0 1024x768x24 & \ export DISPLAY=:99 && \ npm start