pikto commited on
Commit
5f08c18
·
verified ·
1 Parent(s): 6dfe67c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -7
Dockerfile CHANGED
@@ -1,7 +1,25 @@
1
- FROM node:18
2
- RUN git clone https://github.com/piktokenn/ChatGPT-Next-Web.git
3
- WORKDIR "ChatGPT-Next-Web"
4
- RUN npm i
5
- RUN npm run build
6
- EXPOSE 3000
7
- CMD ["npm", "run", "start"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #FROM node:18
2
+ #RUN git clone https://github.com/piktokenn/ChatGPT-Next-Web.git
3
+ #WORKDIR "ChatGPT-Next-Web"
4
+ #RUN npm i
5
+ #RUN npm run build
6
+ #EXPOSE 3000
7
+ #CMD ["npm", "run", "start"]
8
+
9
+ # Use a Node.js base image
10
+ FROM node:19-alpine
11
+
12
+ # Set the working directory
13
+ WORKDIR /app
14
+
15
+ # Copy source code
16
+ COPY . .
17
+
18
+ # Install dependencies
19
+ RUN npm install
20
+
21
+ # Expose the port the app runs on
22
+ EXPOSE 3040
23
+
24
+ # Command to run the start script
25
+ CMD ["sh", "start.sh"]