Spaces:
Sleeping
Sleeping
| FROM node:18-alpine | |
| # Create app directory | |
| WORKDIR /app | |
| # Install app dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the backend source code | |
| COPY . . | |
| # Hugging Face Spaces require the app to run on port 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["npm", "start"] | |