Spaces:
Sleeping
Sleeping
| FROM node:20-alpine | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install dependencies (no better-sqlite3 needed for frontend demo) | |
| RUN npm install --legacy-peer-deps --ignore-scripts | |
| # Copy all files | |
| COPY . . | |
| # Build the app | |
| RUN npm run build | |
| # Expose port 7860 (Hugging Face Spaces default) | |
| EXPOSE 7860 | |
| # Start the preview server (vite.config already sets port 7860 and host) | |
| CMD ["npm", "run", "preview"] |