Javiai commited on
Commit
5920a85
1 Parent(s): 807bb16

update hugging face port 7860

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. app.js +1 -1
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN npm install
14
  COPY . .
15
 
16
  # Expose the port the app runs on
17
- EXPOSE 3000
18
 
19
  # Command to run your application
20
  CMD ["node", "app.js"]
 
14
  COPY . .
15
 
16
  # Expose the port the app runs on
17
+ EXPOSE 7860
18
 
19
  # Command to run your application
20
  CMD ["node", "app.js"]
app.js CHANGED
@@ -8,7 +8,7 @@ app.get('/', (req, res) => {
8
  res.sendFile(path.join(__dirname, 'public', 'index.html'));
9
  });
10
 
11
- const PORT = process.env.PORT || 3000;
12
  app.listen(PORT, () => {
13
  console.log(`Server is running on port ${PORT}`);
14
  });
 
8
  res.sendFile(path.join(__dirname, 'public', 'index.html'));
9
  });
10
 
11
+ const PORT = process.env.PORT || 7860;
12
  app.listen(PORT, () => {
13
  console.log(`Server is running on port ${PORT}`);
14
  });