Try / Dockerfile
Trigger82's picture
Update Dockerfile
45d6906 verified
raw
history blame
283 Bytes
FROM node:23
WORKDIR /app
# Install PM2 globally for process management
RUN npm install -g pm2
COPY package*.json ./
RUN npm install
COPY . .
# Expose the main port
EXPOSE 7860
# Start the application using PM2 to ensure 24/7 operation
CMD ["pm2-runtime", "start", "server.js"]