:recycle: [Refactor] Remove docker-compose, and modify host and port
Browse files- Dockerfile +1 -1
- README.md +1 -1
- docker-compose.yml +0 -9
- server.js +3 -3
Dockerfile
CHANGED
@@ -2,5 +2,5 @@ FROM node:18-slim
|
|
2 |
WORKDIR $HOME/app
|
3 |
COPY . .
|
4 |
RUN npm install
|
5 |
-
EXPOSE
|
6 |
CMD node server.js
|
|
|
2 |
WORKDIR $HOME/app
|
3 |
COPY . .
|
4 |
RUN npm install
|
5 |
+
EXPOSE 23456
|
6 |
CMD node server.js
|
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: π
|
|
4 |
colorFrom: gray
|
5 |
colorTo: gray
|
6 |
sdk: docker
|
7 |
-
app_port:
|
8 |
---
|
9 |
|
10 |
Mirrors:
|
|
|
4 |
colorFrom: gray
|
5 |
colorTo: gray
|
6 |
sdk: docker
|
7 |
+
app_port: 23456
|
8 |
---
|
9 |
|
10 |
Mirrors:
|
docker-compose.yml
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
version: '3'
|
2 |
-
services:
|
3 |
-
your_service:
|
4 |
-
build:
|
5 |
-
context: .
|
6 |
-
dockerfile: Dockerfile
|
7 |
-
ports:
|
8 |
-
- "443:12345"
|
9 |
-
- "12349:12349"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
server.js
CHANGED
@@ -36,7 +36,7 @@ app.post("/chat/completions", async (req, res) => {
|
|
36 |
}
|
37 |
});
|
38 |
|
39 |
-
const port =
|
40 |
-
app.listen(port, () => {
|
41 |
-
console.log(`Server is running on http://
|
42 |
});
|
|
|
36 |
}
|
37 |
});
|
38 |
|
39 |
+
const port = 23456;
|
40 |
+
app.listen(port, "0.0.0.0", () => {
|
41 |
+
console.log(`Server is running on http://0.0.0.0:${port}`);
|
42 |
});
|