Spaces:
Sleeping
Sleeping
| # Use the official lightweight Node.js image | |
| FROM node:22-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Hugging Face Spaces expose port 7860 by default | |
| EXPOSE 7860 | |
| # Set the PORT environment variable for our server.js to pick up | |
| ENV PORT=7860 | |
| # Command to start the app | |
| CMD ["npm", "start"] | |