Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +17 -4
Dockerfile
CHANGED
@@ -1,7 +1,20 @@
|
|
|
|
1 |
FROM node:18
|
2 |
-
|
3 |
-
|
4 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
RUN npm run build
|
|
|
|
|
6 |
EXPOSE 3000
|
7 |
-
|
|
|
|
|
|
1 |
+
# Use the Node.js 18 base image
|
2 |
FROM node:18
|
3 |
+
|
4 |
+
# Clone the ChatGPT-Langchain repository from GitHub
|
5 |
+
RUN git clone https://github.com/Niansuh/ChatGPT-Langchain.git
|
6 |
+
|
7 |
+
# Set the working directory inside the container
|
8 |
+
WORKDIR "ChatGPT-Langchain"
|
9 |
+
|
10 |
+
# Install dependencies using npm
|
11 |
+
RUN npm install
|
12 |
+
|
13 |
+
# Build the project
|
14 |
RUN npm run build
|
15 |
+
|
16 |
+
# Expose port 3000 for accessing the application
|
17 |
EXPOSE 3000
|
18 |
+
|
19 |
+
# Specify the command to run the application
|
20 |
+
CMD ["npm", "run", "start"]
|