Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -1,20 +1,20 @@
|
|
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/WenjiaoYue/
|
6 |
|
7 |
# Set the working directory inside the container
|
8 |
-
WORKDIR
|
9 |
|
10 |
# Install dependencies using npm
|
11 |
RUN npm install
|
12 |
|
13 |
-
#
|
14 |
-
# RUN npm run dev
|
15 |
-
|
16 |
-
# Expose port 5173 for accessing the application
|
17 |
EXPOSE 5173
|
18 |
|
19 |
# Specify the command to run the application
|
20 |
-
CMD ["npm", "run", "dev"]
|
|
|
1 |
# Use the Node.js 18 base image
|
2 |
FROM node:18
|
3 |
|
4 |
+
# Install git
|
5 |
+
RUN apt-get update && apt-get install -y git
|
6 |
+
|
7 |
# Clone the ChatGPT-Langchain repository from GitHub
|
8 |
+
RUN git clone https://github.com/WenjiaoYue/test.git /app
|
9 |
|
10 |
# Set the working directory inside the container
|
11 |
+
WORKDIR /app
|
12 |
|
13 |
# Install dependencies using npm
|
14 |
RUN npm install
|
15 |
|
16 |
+
# Expose port (adjust if necessary)
|
|
|
|
|
|
|
17 |
EXPOSE 5173
|
18 |
|
19 |
# Specify the command to run the application
|
20 |
+
CMD ["npm", "run", "dev"]
|