Dockerfile 732 B

1234567891011121314151617181920212223242526
  1. # Use the current Long Term Support (LTS) version of Node.js
  2. FROM node:lts
  3. # Copy the signalling server source code from the build context
  4. COPY . /opt/SignallingWebServer
  5. # Install the dependencies for the signalling server
  6. WORKDIR /opt/SignallingWebServer
  7. RUN npm install .
  8. # Expose TCP ports 80 and 443 for player WebSocket connections and web server HTTP(S) access
  9. EXPOSE 80
  10. EXPOSE 443
  11. # Expose TCP port 8888 for streamer WebSocket connections
  12. EXPOSE 8888
  13. # Expose TCP port 8889 for connections from the SFU
  14. EXPOSE 8889
  15. # Expose TCP port 9999 for connections from the Matchmaker
  16. EXPOSE 9999
  17. # Set the signalling server as the container's entrypoint
  18. ENTRYPOINT ["/usr/local/bin/node", "/opt/SignallingWebServer/cirrus.js"]