ngoctuanai commited on
Commit
c4bcdaf
·
verified ·
1 Parent(s): 7edf846

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 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
- # Install crypto-browserify
14
- RUN npm install crypto-browserify
15
-
16
- # Build the project
17
- RUN npm run build
18
 
19
- # Expose port 3000 for accessing the application
20
  EXPOSE 3000
21
 
22
- # Specify the command to run the application
23
- CMD ["npm", "run", "start"]
 
 
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"]