From b517072fa48bdd3698e145274b0a03417a854d39 Mon Sep 17 00:00:00 2001 From: vincentastolfi Date: Wed, 17 Apr 2024 21:09:54 +0200 Subject: [PATCH] :green_heart: CI test --- Dockerfile | 2 +- index.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd3b152..e8103f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,5 @@ WORKDIR /usr/src/app COPY ./ ./ RUN sed -i '1i\' ./public/index.html RUN npm install -EXPOSE 8081 +EXPOSE 3000 CMD [ "node", "index.js" ] diff --git a/index.js b/index.js index 2386c1f..67ba74b 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,6 @@ const express = require("express"); const app = express(); const http = require("http").Server(app); const io = require("socket.io")(http); -const port = 8081; const { Player } = require(`${__dirname}/businesses/Player.js`); const { Room } = require(`${__dirname}/businesses/Room.js`); @@ -13,10 +12,6 @@ let players = []; app.use(express.static("public")); -http.listen(port, () => { - console.log(`Listening on http://localhost:${port}`); -}); - app.get("/", (req, res) => { res.sendFile(path.join(__dirname, "/public/index.html")); });