Spaces:
Runtime error
Runtime error
| # Use Node.js 18 LTS | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install --only=production | |
| # Copy all project files | |
| COPY . . | |
| # Expose port (Hugging Face default) | |
| EXPOSE 7860 | |
| # Start the Node.js app | |
| CMD ["npm", "start"] | |