Spaces:
Sleeping
Sleeping
| # Use an official Node.js runtime | |
| FROM node:18-alpine | |
| # Set working directory inside container | |
| WORKDIR /app | |
| # Copy package files first (for caching) | |
| COPY package.json ./ | |
| # Install dependencies | |
| RUN npm install --production | |
| # Copy all files | |
| COPY . . | |
| # Expose the web port | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["npm", "start"] |