Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -14
Dockerfile
CHANGED
@@ -1,23 +1,15 @@
|
|
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 |
-
|
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 |
-
|
14 |
-
RUN npm install crypto-browserify
|
15 |
-
|
16 |
-
# Build the project
|
17 |
-
RUN npm run build
|
18 |
|
19 |
-
#
|
20 |
EXPOSE 3000
|
21 |
|
22 |
-
#
|
23 |
-
CMD ["npm", "
|
|
|
|
|
1 |
FROM node:18
|
2 |
|
|
|
3 |
WORKDIR /ChatGPT-Plugins
|
4 |
|
5 |
+
RUN apt-get update && apt-get install -y
|
6 |
+
RUN git clone https://github.com/chokiproai/ChatGPT-Plugins.git
|
|
|
|
|
7 |
RUN npm install --legacy-peer-deps
|
8 |
|
9 |
+
ENV PORT=3000
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
# Mở cổng để truy cập ứng dụng
|
12 |
EXPOSE 3000
|
13 |
|
14 |
+
# Khởi chạy ứng dụng
|
15 |
+
CMD ["npm", "start"]
|