Spaces:
Sleeping
Sleeping
| # Use Node.js 20 Alpine as base image | |
| FROM node:20-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm ci | |
| # Copy source code | |
| COPY . . | |
| # Build TypeScript code | |
| RUN npm run build | |
| # Expose the port Hugging Face Spaces expects | |
| EXPOSE 7860 | |
| # Set environment variable for port | |
| ENV PORT=7860 | |
| # Start the application | |
| CMD ["npm", "start"] | |