Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +18 -14
Dockerfile
CHANGED
@@ -1,20 +1,24 @@
|
|
1 |
-
# Use the
|
2 |
-
FROM
|
3 |
|
4 |
-
#
|
5 |
-
|
6 |
|
7 |
-
#
|
8 |
-
|
9 |
|
10 |
-
# Install
|
11 |
-
RUN
|
12 |
|
13 |
-
#
|
14 |
-
|
15 |
|
16 |
-
#
|
17 |
-
ENV
|
18 |
|
19 |
-
#
|
20 |
-
|
|
|
|
|
|
|
|
|
|
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-LangChain-NAI.git
|
6 |
|
7 |
+
# Set the working directory inside the container
|
8 |
+
WORKDIR "ChatGPT-Next-Web-LangChain-NAI"
|
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-4o-2024-08-06@GPT-CHATBOT,+01-ai/Yi-1.5-6B-Chat@GPT-CHATBOT,+360gpt-pro@GPT-CHATBOT,+360gpt-turbo@GPT-CHATBOT,+Baichuan2-Turbo@GPT-CHATBOT,+Baichuan3-Turbo@GPT-CHATBOT,+Baichuan4@GPT-CHATBOT,+Pro/google/gemma-2-9b-it@GPT-CHATBOT,+Pro/meta-llama/Meta-Llama-3-8B-Instruct@GPT-CHATBOT,+Pro/mistralai/Mistral-7B-Instruct-v0.2@GPT-CHATBOT,+Qwen/Qwen1.5-7B-Chat@GPT-CHATBOT,+Qwen/Qwen2-7B-Instruct@GPT-CHATBOT,+THUDM/chatglm3-6b@GPT-CHATBOT,+THUDM/glm-4-9b-chat@GPT-CHATBOT,+claude-3-haiku-20240307@GPT-CHATBOT,+deepseek-ai/deepseek-v2-chat@GPT-CHATBOT,+deepseek-chat@GPT-CHATBOT,+deepseek-coder@GPT-CHATBOT,+glm-4-airx@GPT-CHATBOT,+glm-3-turbo@GPT-CHATBOT,+glm-4@GPT-CHATBOT,+glm-4-air@GPT-CHATBOT,+glm-4-flash@GPT-CHATBOT,+glm-4-long@GPT-CHATBOT,+glm-4v@GPT-CHATBOT,+internlm/internlm2_5-7b-chat@GPT-CHATBOT,+moonshot-v1-8k@GPT-CHATBOT,+yi-large@GPT-CHATBOT,+yi-large-rag@GPT-CHATBOT,+yi-large-turbo@GPT-CHATBOT,+yi-medium@GPT-CHATBOT,+yi-medium-200k@GPT-CHATBOT
|
18 |
|
19 |
+
# Expose port 3000 for accessing the application
|
20 |
+
|
21 |
+
EXPOSE 3000
|
22 |
+
|
23 |
+
# Specify the command to run the application
|
24 |
+
CMD ["npm", "run", "start"]
|