Spaces:
Paused
Paused
ayoub ayoub commited on
Update Dockerfile
Browse files1234567891011121314151617181920# Use official Node.js runtime as a base imageFROM node:18-slim# Set working directoryWORKDIR /app# Copy package.json and package-lock.jsonCOPY package*.json ./# Install dependenciesRUN npm install# Copy the rest of your app filesCOPY . .# Expose the port your app listens on (default 7860 for HF Spaces)EXPOSE 7860# Start your Node.js appCMD ["node", "index.js"]123456789101112131415FROM node:18-slimWORKDIR /appCOPY package*.json ./RUN npm installCOPY . .EXPOSE 7860ENV PORT=7860CMD ["./node_modules/.bin/concurrently", "node bot.js", "node server.js"]
Dockerfile+3-8