Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -7
Dockerfile
CHANGED
|
@@ -1,20 +1,15 @@
|
|
| 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 /test
|
| 9 |
|
| 10 |
-
# Set the working directory inside the container
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
-
# Install dependencies using npm
|
| 14 |
RUN npm install
|
| 15 |
|
| 16 |
-
|
|
|
|
| 17 |
EXPOSE 5173
|
| 18 |
|
| 19 |
-
# Specify the command to run the application
|
| 20 |
CMD ["npm", "run", "dev"]
|
|
|
|
|
|
|
| 1 |
FROM node:18
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y git
|
| 4 |
|
|
|
|
| 5 |
RUN git clone https://github.com/WenjiaoYue/test.git /test
|
| 6 |
|
|
|
|
| 7 |
WORKDIR /app
|
| 8 |
|
|
|
|
| 9 |
RUN npm install
|
| 10 |
|
| 11 |
+
RUN chmod 777 /hfChat/vite.config.ts.timestamp-1709099141477-197d7f282f515.mjs
|
| 12 |
+
|
| 13 |
EXPOSE 5173
|
| 14 |
|
|
|
|
| 15 |
CMD ["npm", "run", "dev"]
|