Niansuh commited on
Commit
dccdd57
·
verified ·
1 Parent(s): 62998ed

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the Node.js 18 base image
2
+ FROM node:18
3
+
4
+ # Clone the ChatGPT repository from GitHub
5
+ RUN git clone https://github.com/RKIAI/ChatGPT-Next-Web.git
6
+
7
+ # Set the working directory inside the container
8
+ WORKDIR "ChatGPT-Next-Web"
9
+
10
+ # Install dependencies using npm
11
+ RUN npm install
12
+
13
+ # Build the project
14
+ RUN npm run build
15
+
16
+ # Define environment variables
17
+ ENV CUSTOM_MODELS=-all,+gpt-3.5-turbo,+gpt-3.5-turbo-1106,+gpt-3.5-turbo-1025,+gpt-3.5-turbo-16k,+gpt-4o,+gpt-4-turbo-preview,+Creative,+Balanced,+Precise
18
+
19
+ # Expose port 3000 for accessing the application
20
+ EXPOSE 3000
21
+
22
+ # Specify the command to run the application
23
+ CMD ["npm", "run", "start"]