Spaces:
Sleeping
Sleeping
Update Dockerfile (#1)
Browse files- Update Dockerfile (8e888ed2d5f5207aac3dbe82b86b09320849b02f)
Co-authored-by: Husnain <Niansuh@users.noreply.huggingface.co>
- 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"]
|