File size: 449 Bytes
6cbeb65
2af2f72
6cbeb65
 
2af2f72
 
 
6cbeb65
 
 
 
 
 
2af2f72
6cbeb65
2af2f72
 
 
 
6cbeb65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]