victor HF staff commited on
Commit
0123ef3
1 Parent(s): 94d9589

Changed the app port to listen on port 7860.

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. server.js +1 -1
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN npm install
14
  COPY . .
15
 
16
  # Expose the port that the app runs on
17
- EXPOSE 3000
18
 
19
  # Define the command to run the application
20
  CMD ["node", "server.js"]
 
14
  COPY . .
15
 
16
  # Expose the port that the app runs on
17
+ EXPOSE 7860
18
 
19
  # Define the command to run the application
20
  CMD ["node", "server.js"]
server.js CHANGED
@@ -2,7 +2,7 @@ const express = require("express");
2
  const path = require("path");
3
  const axios = require("axios");
4
  const app = express();
5
- const port = process.env.PORT || 3000;
6
 
7
  // Serve static files from the current directory
8
  app.use(express.static(__dirname));
 
2
  const path = require("path");
3
  const axios = require("axios");
4
  const app = express();
5
+ const port = process.env.PORT || 7860;
6
 
7
  // Serve static files from the current directory
8
  app.use(express.static(__dirname));