Spaces:
Sleeping
Sleeping
Changed the app port to listen on port 7860.
Browse files- Dockerfile +1 -1
- 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
|
| 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 ||
|
| 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));
|