Hansimov commited on
Commit
1945d73
β€’
1 Parent(s): eb8f805

:recycle: [Refactor] Remove docker-compose, and modify host and port

Browse files
Files changed (4) hide show
  1. Dockerfile +1 -1
  2. README.md +1 -1
  3. docker-compose.yml +0 -9
  4. 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 12345
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: 12345
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 = 12345;
40
- app.listen(port, () => {
41
- console.log(`Server is running on http://127.0.0.1:${port}`);
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
  });