Spaces:
Sleeping
Sleeping
| # Build Stage | |
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| # Install dependencies (will work now that package.json is fixed) | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| # Serve Stage | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| RUN npm install -g serve | |
| # Copy the 'dist' folder from the builder stage | |
| COPY --from=builder /app/dist ./dist | |
| EXPOSE 7860 | |
| CMD ["serve", "-s", "dist", "-l", "7860"] |