Merge pull request #75 from rwth-acis/master
Fix for running websocket using dockerfile
This commit is contained in:
commit
1e1be2cfc7
@ -6,4 +6,5 @@ COPY package*.json ./
|
|||||||
USER node
|
USER node
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY --chown=node:node . .
|
COPY --chown=node:node . .
|
||||||
|
EXPOSE 1234
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
@ -29,6 +29,6 @@ server.on('upgrade', (request, socket, head) => {
|
|||||||
wss.handleUpgrade(request, socket, head, handleAuth)
|
wss.handleUpgrade(request, socket, head, handleAuth)
|
||||||
})
|
})
|
||||||
|
|
||||||
server.listen({ host, port })
|
server.listen(port, () => {
|
||||||
|
console.log(`running at '${host}' on port ${port}`)
|
||||||
console.log(`running at '${host}' on port ${port}`)
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user