Spaces:
Runtime error
Runtime error
update hugging face port 7860
Browse files- Dockerfile +1 -1
- 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
|
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 ||
|
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 |
});
|