Reaperxxxx commited on
Commit
f599cf1
·
verified ·
1 Parent(s): 3eb5f5b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -1,15 +1,14 @@
1
- FROM node:18
2
 
3
  RUN apt-get update && apt-get install -y git
4
 
5
- RUN git clone https://github.com/reaperofssa/ChatNest.git /app
 
6
 
7
- WORKDIR /app
8
-
9
- RUN npm install cors express mongoose bcrypt axios socket.io body-parser form-data
10
 
11
- RUN chmod -R 777 /app
12
 
13
  EXPOSE 7860
14
 
15
- CMD ["node", "server.js"]
 
1
+ FROM node:20
2
 
3
  RUN apt-get update && apt-get install -y git
4
 
5
+ COPY start.sh /start.sh
6
+ RUN chmod +x /start.sh
7
 
8
+ RUN mkdir -p /app && chmod -R 777 /app
 
 
9
 
10
+ WORKDIR /app
11
 
12
  EXPOSE 7860
13
 
14
+ CMD ["/start.sh"]