Merge pull request #75 from rwth-acis/master

Fix for running websocket using dockerfile
This commit is contained in:
Kevin Jahns 2021-11-20 15:28:23 +01:00 committed by GitHub
commit 1e1be2cfc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -6,4 +6,5 @@ COPY package*.json ./
USER node
RUN npm install
COPY --chown=node:node . .
EXPOSE 1234
CMD [ "npm", "start" ]

View File

@ -29,6 +29,6 @@ server.on('upgrade', (request, socket, head) => {
wss.handleUpgrade(request, socket, head, handleAuth)
})
server.listen({ host, port })
server.listen(port, () => {
console.log(`running at '${host}' on port ${port}`)
})