Spaces:
Sleeping
Sleeping
| # Use Node 18 Alpine | |
| FROM node:18-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json first for caching | |
| COPY package*.json ./ | |
| # Install all dependencies | |
| RUN npm install | |
| # Copy the rest of the project | |
| COPY . . | |
| # Build frontend with Vite | |
| RUN npm run build | |
| # Expose your app port | |
| EXPOSE 7860 | |
| # Start the Express server | |
| CMD ["npm", "start"] | |