docker #18

Merged
bmamihai merged 9 commits from docker into develop 2023-02-26 22:11:03 +00:00
Showing only changes of commit b2f9f5affa - Show all commits

View File

@ -7,8 +7,6 @@ RUN apt-get update && \
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs RUN apt-get install -y nodejs
RUN npm install -g watchify
RUN npm install -g pm2
RUN mkdir -p server/ssl RUN mkdir -p server/ssl
RUN mkdir -p public/ RUN mkdir -p public/
@ -22,7 +20,7 @@ RUN npm install
EXPOSE 3000/tcp EXPOSE 3000/tcp
EXPOSE 2000-2200/udp EXPOSE 2000-2200/udp
CMD pm2 start app.js --name video-server -e /app/mediasoup-error.log -o /app/mediasoup-output.log -l /app/mediasoup.log --log-date-format "YYYY-MM-DD HH:mm:ss" --merge-logs --cwd /app/ -i 1; pm2 status; pm2 logs CMD node start app.js
#docker build -t linx-video . #docker build -t linx-video .
# docker run -it -d --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video # docker run -it -d --restart always -p 3000:3000/tcp -p 2000-2200:2000-2200/udp linx-video