Spaces:
Paused
Paused
| # Use lightweight Node.js 18 Alpine image | |
| FROM node:18-alpine | |
| # Install git and bash (for debugging) | |
| RUN apk add --no-cache git bash | |
| # Set working directory | |
| WORKDIR /app | |
| # Clone your repo and install production dependencies | |
| RUN git clone https://github.com/EMMYHENZ-TECH/flasher . && \ | |
| rm -rf .git && \ | |
| npm install --production | |
| # Optional: Copy .env file (uncomment if needed) | |
| # COPY .env .env | |
| # Set environment variable for port (used by Hugging Face) | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "server.js"] |