Spaces:
Sleeping
Sleeping
ngoctuanai
commited on
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -1,14 +1,14 @@
|
|
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/chokiproai/ChatGPT-Plugins.git
|
6 |
-
|
7 |
# Set the working directory inside the container
|
8 |
-
WORKDIR
|
|
|
|
|
|
|
9 |
|
10 |
-
# Install dependencies using npm
|
11 |
-
RUN npm install
|
12 |
|
13 |
# Build the project
|
14 |
RUN npm run build
|
|
|
1 |
# Use the Node.js 18 base image
|
2 |
FROM node:18
|
3 |
|
|
|
|
|
|
|
4 |
# Set the working directory inside the container
|
5 |
+
WORKDIR /ChatGPT-Plugins
|
6 |
+
|
7 |
+
# Clone the ChatGPT repository from GitHub
|
8 |
+
RUN git clone https://github.com/chokiproai/ChatGPT-Plugins.git .
|
9 |
|
10 |
+
# Install dependencies using npm with legacy peer dependencies
|
11 |
+
RUN npm install --legacy-peer-deps
|
12 |
|
13 |
# Build the project
|
14 |
RUN npm run build
|