Spaces:
Sleeping
Sleeping
| # Use Node.js alpine for lightweight static file serving | |
| FROM node:alpine | |
| # Set environment variable for Hugging Face Spaces URL | |
| ENV EDITOR_BASE_URL="https://Aditya025-Plant.hf.space" | |
| # Install serve globally | |
| RUN npm install -g serve | |
| # Copy the built static files from dist folder | |
| COPY dist/ /app/ | |
| # Set working directory | |
| WORKDIR /app | |
| # Expose port 7860 for Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Start serve to host static files on all interfaces | |
| CMD ["serve", "-s", ".", "-l", "7860"] | |