dockerfile + package.json pour les serveurs
continuous-integration/drone/push Build is passing Details

CI/CD
Thomas Chazot 7 months ago
parent cf255534cf
commit b7eeff29f8

@ -11,10 +11,10 @@ COPY package*.json ./
RUN npm install
# Copy the rest of the application code
COPY ./server/socket_io/server.js .
COPY ./server.js .
# Expose the port that the application will run on
EXPOSE 443
EXPOSE 3002
# Command to run the application
ENTRYPOINT ["node", "server.js"]
CMD ["node", "server.js"]

@ -0,0 +1,11 @@
{
"name": "cryptide",
"version": "1.0.0",
"dependencies": {
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-session": "^1.17.3",
"socket.io": "^4.7.2"
}
}

@ -18,8 +18,8 @@ const io = socketIO(server, {
let lastSocketJoined = ""
const map = new Map()
server.listen(443, () => {
console.log('Serveur Socket.IO écoutant sur le port 80');
server.listen(3002, () => {
console.log('Serveur Socket.IO écoutant sur le port 3002');
});
app.get('/', (req, res) => {

Loading…
Cancel
Save