Dockerfile 645 B

1234567891011121314151617181920212223242526
  1. # Copyright Epic Games, Inc. All Rights Reserved.
  2. FROM node:latest
  3. # Make sure Mediasoup requirements are met
  4. RUN apt -y update
  5. RUN apt -y install python3-pip
  6. # Copy the Selective Forwarding Unit (SFU) to the Docker build context
  7. COPY . /opt/SFU
  8. # Install the dependencies for the mediasoup server
  9. WORKDIR /opt/SFU
  10. RUN npm update
  11. RUN npm install .
  12. # Expose TCP port 80 for player WebSocket connections and web server HTTP access
  13. EXPOSE 40000-49999
  14. # Expose TCP port 8888 for streamer WebSocket connections
  15. EXPOSE 8889
  16. # Set the signalling server as the container's entrypoint
  17. ENTRYPOINT ["/usr/local/bin/node", "/opt/SFU/sfu_server.js"]