# Use the official Node.js image FROM node:14 # Set working directory WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install # Copy app source code COPY . . # Expose port EXPOSE 9229 # Debug command CMD ["node", "--inspect=0.0.0.0:9229", "app.js"]