mediasoup/Dockerfile

25 lines
794 B
Docker
Raw Permalink Normal View History

2022-12-10 02:38:09 +02:00
FROM ubuntu:22.04
WORKDIR /app
2022-07-30 09:53:40 +03:00
RUN apt-get update && \
apt-get install -y build-essential pip net-tools iputils-ping iproute2 curl
2022-12-10 02:38:09 +02:00
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
2022-07-30 09:53:40 +03:00
RUN apt-get install -y nodejs
2022-12-10 02:38:09 +02:00
2022-12-15 13:20:22 +02:00
COPY . /app/
2022-12-10 02:38:09 +02:00
RUN npm install
2022-07-30 09:53:40 +03:00
2022-12-10 03:21:59 +02:00
EXPOSE 3000/tcp
EXPOSE 2000-2200/udp
2022-12-14 01:32:17 +02:00
CMD node app.js
2022-12-10 02:38:09 +02:00
2022-12-10 03:21:59 +02:00
#docker build -t linx-video .
2023-01-05 13:18:13 +02:00
# docker run -it -d --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video
#Run under host network
2023-01-05 14:31:51 +02:00
# docker run -it -d --network host --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video
#https://docs.docker.com/config/containers/resource_constraints/
#docker run -it -d --network host --cpus="0.25" --memory="512m" --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video