Spaces:
Sleeping
Sleeping
| FROM node:20 | |
| # Install git | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Pre-install your npm packages (global app dependencies) | |
| RUN npm install cors express-rate-limit express axios bcrypt fs-extra mongodb jsonwebtoken node-cron dotenv crypto | |
| # Copy start script | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| # Ensure /app has full permissions | |
| RUN chmod -R 777 /app | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |