ngoctuanai commited on
Commit
d5e534d
·
verified ·
1 Parent(s): 1b087e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -7
Dockerfile CHANGED
@@ -1,16 +1,20 @@
 
1
  FROM node:18
2
 
3
- WORKDIR /app
 
4
 
5
- RUN apt-get update && apt-get install -y git
6
- RUN git clone https://github.com/chokiproai/ChatGPT-Plugins.git /app
7
-
8
- WORKDIR /app
9
 
 
10
  RUN npm install --legacy-peer-deps
11
 
12
- ENV PORT=3000
 
13
 
 
14
  EXPOSE 3000
15
 
16
- CMD ["npm", "start"]
 
 
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
15
 
16
+ # Expose port 3000 for accessing the application
17
  EXPOSE 3000
18
 
19
+ # Specify the command to run the application
20
+ CMD ["npm", "run", "start"]