GPTfree api commited on
Commit
c94e6b6
·
verified ·
1 Parent(s): 58a2ac1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -7,19 +7,17 @@ WORKDIR /app
7
  # Clone the Rammerhead repository
8
  RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
9
 
10
- # Install dependencies
11
- RUN npm install
12
 
13
- # Build the project
14
- RUN npm run build
15
 
16
- # Copy configuration file (if needed, override src/config.js or add config.js in the root directory)
17
- # You can uncomment the lines below and provide your own config if required.
18
- # ADD your-config.js /app/src/config.js
19
- # ADD your-config.js /app/config.js
20
 
21
  # Expose the necessary port (assuming 8080 is the default, update if needed)
22
  EXPOSE 8080
23
 
24
  # Start the Rammerhead server
25
- CMD ["node", "src/server.js"]
 
7
  # Clone the Rammerhead repository
8
  RUN git clone https://github.com/s-tn/rammerhead-heroku.git .
9
 
10
+ # Ensure the latest npm version is used
11
+ RUN npm install -g npm@latest
12
 
13
+ # Install dependencies safely
14
+ RUN npm install --legacy-peer-deps
15
 
16
+ # Build the project
17
+ RUN npm run build || npm run bstart
 
 
18
 
19
  # Expose the necessary port (assuming 8080 is the default, update if needed)
20
  EXPOSE 8080
21
 
22
  # Start the Rammerhead server
23
+ CMD [ "node", "src/server.js" ]